diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 16:04:26 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 16:04:41 -0700 |
commit | 6a088436d4c04b8081e86f9e856f10fba97d0612 (patch) | |
tree | 2c229f425eba248cdc13454a71d594d237b87a81 /signal | |
parent | 78cf1d74d28c9312d888dea1ad3de01d38c5fc4a (diff) | |
download | glibc-6a088436d4c04b8081e86f9e856f10fba97d0612.tar glibc-6a088436d4c04b8081e86f9e856f10fba97d0612.tar.gz glibc-6a088436d4c04b8081e86f9e856f10fba97d0612.tar.bz2 glibc-6a088436d4c04b8081e86f9e856f10fba97d0612.zip |
Hide internal signal functions [BZ #18822]
Hide internal signal functions to allow direct access within libc.so and
libc.a without using GOT nor PLT.
__GI___kill and __GI___sigaltstack are defined when syscalls.list is
used to generate them. Otherwise libc_hidden_def is needed explicitly.
[BZ #18822]
* include/signal.h (__kill): Add libc_hidden_proto.
(__sigblock): Likewise.
(__sigprocmask): Likewise.
(__sigaltstack): Likewise.
* signal/kill.c (__kill): Add libc_hidden_def.
* signal/sigblock.c (__sigblock): Likewise.
* signal/sigprocmask.c (__sigprocmask): Likewise.
* sysdeps/mach/hurd/kill.c (__kill): Likewise.
* sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
* sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
* sysdeps/posix/sigblock.c (__sigblock): Likewise.
* sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
Likewise.
* sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
Likewise.
* sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
(__sigprocmask): Likewise.
* sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
Likewise.
* /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
(__sigprocmask): Likewise.
* sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
Likewise.
Diffstat (limited to 'signal')
-rw-r--r-- | signal/kill.c | 1 | ||||
-rw-r--r-- | signal/sigblock.c | 1 | ||||
-rw-r--r-- | signal/sigprocmask.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/signal/kill.c b/signal/kill.c index c7591b10c1..66f85d127c 100644 --- a/signal/kill.c +++ b/signal/kill.c @@ -30,4 +30,5 @@ __kill (int pid, int sig) } stub_warning (kill) +libc_hidden_def (__kill) weak_alias (__kill, kill) diff --git a/signal/sigblock.c b/signal/sigblock.c index a8be9dbde9..fca370a52d 100644 --- a/signal/sigblock.c +++ b/signal/sigblock.c @@ -27,4 +27,5 @@ __sigblock (int mask) } stub_warning (sigblock) +libc_hidden_def (__sigblock) weak_alias (__sigblock, sigblock) diff --git a/signal/sigprocmask.c b/signal/sigprocmask.c index afcf5a116e..ca9bb556b8 100644 --- a/signal/sigprocmask.c +++ b/signal/sigprocmask.c @@ -44,4 +44,5 @@ __sigprocmask (int how, const sigset_t *set, sigset_t *oset) and we don't want warnings for every use of abort on a system without safe signals. */ +libc_hidden_def (__sigprocmask) weak_alias (__sigprocmask, sigprocmask) |