about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-05-04 14:10:41 -0400
committerMike Frysinger <vapier@gentoo.org>2013-08-16 15:13:10 -0400
commitb1ef729251fec30082c58d69fcc7d482d7ced7db (patch)
treea0076af65f4d6e9a0ad9d657a32e0915290cb588
parent632bb8406a6d242d94b11ae86ad1bd2e8fd387d3 (diff)
downloadglibc-b1ef729251fec30082c58d69fcc7d482d7ced7db.tar.gz
glibc-b1ef729251fec30082c58d69fcc7d482d7ced7db.tar.xz
glibc-b1ef729251fec30082c58d69fcc7d482d7ced7db.zip
workaround crash when handling signals in static PIEs
work around ... not entirely sure what is going on here.

2011-03-01	squeezy  <vina@mailserver.eu>

	* sysdeps/unix/sysv/linux/x86_64/sigaction.c fix the __restore_rt symbol

http://bugs.gentoo.org/283470
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sigaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/sigaction.c b/sysdeps/unix/sysv/linux/x86_64/sigaction.c
index 4b5d1e1a8b..5390318fa2 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.