Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
// If you change this, remember to also change glibc_version.redef | ||
#pragma once | ||
|
||
#ifndef __ASSEMBLER__ | ||
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); | ||
__asm__(".symver memcmp,memcmp@GLIBC_2.2.5"); | ||
#ifdef __x86_64__ | ||
#ifndef __ASSEMBLER__ | ||
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); | ||
__asm__(".symver memcmp,memcmp@GLIBC_2.2.5"); | ||
#else | ||
.symver memcpy,memcpy@GLIBC_2.2.5 | ||
.symver memcmp,memcmp@GLIBC_2.2.5 | ||
#endif | ||
#else | ||
.symver memcpy,memcpy@GLIBC_2.2.5 | ||
.symver memcmp,memcmp@GLIBC_2.2.5 | ||
#ifndef __ASSEMBLER__ | ||
__asm__(".symver memcpy,memcpy@GLIBC_2.0"); | ||
__asm__(".symver memcmp,memcmp@GLIBC_2.0"); | ||
#else | ||
.symver memcpy,memcpy@GLIBC_2.0 | ||
.symver memcmp,memcmp@GLIBC_2.0 | ||
#endif | ||
|
||
#endif |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Note: use objcopy --redefine-syms=glibc_version.redef sourcepath.a target.a | ||
# to build a static linkable libstdc++ from the system variant using old glibc references | ||
# documented above. | ||
# If you change this, remember to also change glibc_version.h | ||
# See also: create_static_libraries.sh | ||
# | ||
memcmp memcmp@GLIBC_2.0 | ||
memcpy memcpy@GLIBC_2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters