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/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cca855811394c527a7de8dc45abc7d65dd9e1745;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 ab2398580f4..3f48a264352 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sigaction.c +++ b/sysdeps/unix/sysv/linux/x86_64/sigaction.c @@ -39,7 +39,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.