File: unsubmitted-NO_HIDDEN.diff

package info (click to toggle)
glibc 2.24-10
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 223,412 kB
  • sloc: ansic: 991,967; asm: 261,800; sh: 10,385; makefile: 9,710; cpp: 4,169; python: 3,971; perl: 2,254; awk: 1,753; pascal: 1,521; yacc: 291; sed: 80
file content (29 lines) | stat: -rw-r--r-- 1,063 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
TODO: drop, now that we have hidden support.

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

---
 symbol-hacks.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Index: eglibc-2.18/sysdeps/generic/symbol-hacks.h
===================================================================
--- eglibc-2.18.orig/sysdeps/generic/symbol-hacks.h	2013-06-15 17:37:04.000000000 +0000
+++ eglibc-2.18/sysdeps/generic/symbol-hacks.h	2013-10-10 06:28:31.000000000 +0000
@@ -1,7 +1,10 @@
 /* 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
 #endif