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>2015-08-05 06:17:11 -0400
commit9eef0eeeff0eb128fea73e3530e686c0afbdc78a (patch)
tree3674bd4d2a1931e478e7a15fe4e1823177f993a6
parentb49a9c12c0bfda5c03372539c22e89b9d0bc4b85 (diff)
downloadglibc-9eef0eeeff0eb128fea73e3530e686c0afbdc78a.tar.gz
glibc-9eef0eeeff0eb128fea73e3530e686c0afbdc78a.tar.xz
glibc-9eef0eeeff0eb128fea73e3530e686c0afbdc78a.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 efc837fdb4..344ca108ec 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.