summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-10-08 01:37:46 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-10-08 01:37:46 +0200
commitc176f168fd96a017ff741f82d9ee14996b8a1215 (patch)
treeb6c6efbd90a6aedda682dafdd47044df184730ce /sysdeps
parent58695b88a9deaecbcf7794760cc333177edaa2b4 (diff)
Do not use __GI_* symbols
hurd-i386 defines NO_HIDDEN, thus __GI_* versions are not available. This was introduced by https://sourceware.org/bugzilla/show_bug.cgi?id=15605 When building with -O2, we shouldn't actually have the issue, but we should try not to define NO_HIDDEN
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/symbol-hacks.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/generic/symbol-hacks.h b/sysdeps/generic/symbol-hacks.h
index 9eaf014ff2..fe99289a4b 100644
--- a/sysdeps/generic/symbol-hacks.h
+++ b/sysdeps/generic/symbol-hacks.h
@@ -1,6 +1,9 @@
/* Some compiler optimizations may transform loops into memset/memmove
calls and without proper declaration it may generate PLT calls. */
#if !defined __ASSEMBLER__ && !defined NOT_IN_libc && defined SHARED
+#include <config.h>
+# if !defined NO_HIDDEN
asm ("memmove = __GI_memmove");
asm ("memset = __GI_memset");
+# endif
#endif