unsubmitted-NO_HIDDEN
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 2 Dec 2017 10:07:17 +0000 (10:07 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sat, 2 Dec 2017 10:07:17 +0000 (10:07 +0000)
hurd-i386 defines NO_HIDDEN, thus __GI_* versions are not available.

This was introduced by

https://sourceware.org/bugzilla/show_bug.cgi?id=15605

Since Debian glibc is built with -O2, we shouldn't actually have the issue, but
we should try not to define NO_HIDDEN

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name unsubmitted-NO_HIDDEN.diff

sysdeps/generic/symbol-hacks.h

index d614c099c9f91447a331ed3a90155960cca597cd..1d1c8e7b5ec9e0bdccbc9aeaddc8044035e11abf 100644 (file)
@@ -1,9 +1,12 @@
 /* Some compiler optimizations may transform loops into memset/memmove
    calls and without proper declaration it may generate PLT calls.  */
 #if !defined __ASSEMBLER__ && IS_IN (libc) && defined SHARED
+#include <config.h>
+#  if !defined NO_HIDDEN
 asm ("memmove = __GI_memmove");
 asm ("memset = __GI_memset");
 asm ("memcpy = __GI_memcpy");
+#  endif
 
 /* Some targets do not use __stack_chk_fail_local.  In libc.so,
    redirect __stack_chk_fail to a hidden reference