From 9b0b8d8de75c2e0776d9fe5505c7e9ed3d01fba9 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Sun, 28 May 2017 17:29:33 +0000 Subject: [PATCH] unsubmitted-NO_HIDDEN 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/generic/symbol-hacks.h b/sysdeps/generic/symbol-hacks.h index ce576c9fd..137ff57d8 100644 --- a/sysdeps/generic/symbol-hacks.h +++ b/sysdeps/generic/symbol-hacks.h @@ -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 +# if !defined NO_HIDDEN asm ("memmove = __GI_memmove"); asm ("memset = __GI_memset"); asm ("memcpy = __GI_memcpy"); +# endif #endif -- 2.30.2