From: Mike Frysinger Date: Sat, 4 May 2013 18:10:41 +0000 (-0400) Subject: workaround crash when handling signals in static PIEs X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9eef0eeeff0eb128fea73e3530e686c0afbdc78a;p=thirdparty%2Fglibc.git workaround crash when handling signals in static PIEs work around ... not entirely sure what is going on here. 2011-03-01 squeezy * sysdeps/unix/sysv/linux/x86_64/sigaction.c fix the __restore_rt symbol http://bugs.gentoo.org/283470 --- diff --git a/sysdeps/unix/sysv/linux/x86_64/sigaction.c b/sysdeps/unix/sysv/linux/x86_64/sigaction.c index efc837fdb46..344ca108ec8 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sigaction.c +++ b/sysdeps/unix/sysv/linux/x86_64/sigaction.c @@ -37,7 +37,7 @@ /* Using the hidden attribute here does not change the code but it helps to avoid warnings. */ -extern void restore_rt (void) asm ("__restore_rt") attribute_hidden; +extern void restore_rt (void) asm ("__restore_rt") __attribute__((__visibility__("hidden"))); /* If ACT is not NULL, change the action for SIG to *ACT.