summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-22 17:15:56 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-22 17:15:56 +0000
commitcf29148c9a9387a4a173dd56c7ae0fdd4418fad7 (patch)
tree907ef74d9959ba62a6143ac403f2329eb5cd0c8f /libc
parent1e950c61e51838680f35317669376e40d69bc6c6 (diff)
signal ops: avoid calls through PLT for __sigXXX ops
linuxthreads.old/manager: pointless style fixes, no code changes
Diffstat (limited to 'libc')
-rw-r--r--libc/signal/sigsetops.c6
-rw-r--r--libc/sysdeps/linux/common/bits/sigset.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/libc/signal/sigsetops.c b/libc/signal/sigsetops.c
index 6f1ae5c83..c47a87b0e 100644
--- a/libc/signal/sigsetops.c
+++ b/libc/signal/sigsetops.c
@@ -9,3 +9,9 @@
#endif
#include <signal.h>
+
+/* Since we massaged signal.h into emitting non-inline function
+ * definitions, we need to finish PLT avoidance trick: */
+libc_hidden_def(__sigismember)
+libc_hidden_def(__sigaddset)
+libc_hidden_def(__sigdelset)
diff --git a/libc/sysdeps/linux/common/bits/sigset.h b/libc/sysdeps/linux/common/bits/sigset.h
index 7ccadda45..9a16e5cb9 100644
--- a/libc/sysdeps/linux/common/bits/sigset.h
+++ b/libc/sysdeps/linux/common/bits/sigset.h
@@ -101,8 +101,11 @@ typedef struct
checking is done in the non __ versions. */
extern int __sigismember (__const __sigset_t *, int);
+libc_hidden_proto(__sigismember)
extern int __sigaddset (__sigset_t *, int);
+libc_hidden_proto(__sigaddset)
extern int __sigdelset (__sigset_t *, int);
+libc_hidden_proto(__sigdelset)
# ifdef __USE_EXTERN_INLINES
# define __SIGSETFN(NAME, BODY, CONST) \