]> git.ipfire.org Git - thirdparty/glibc.git/commit - NEWS
signal: Move sys_siglist to a compat symbol
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 24 Apr 2020 14:09:00 +0000 (11:09 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 7 Jul 2020 17:10:58 +0000 (14:10 -0300)
commitb1ccfc061feee9ce616444ded8e1cd5acf9fa97f
treefc6cf960f68245bcbf045df47955c253a94504d8
parente4e11b1dba261cb650e631978622bf3b4a4d8c37
signal: Move sys_siglist to a compat symbol

The symbol was deprecated by strsignal and its usage imposes issues
such as copy relocations.

Its internal name is changed to __sys_siglist and __sys_sigabbrev to
avoid static linking usage.  The compat code is also refactored, since
both Linux and Hurd usage the same strategy: export the same array with
different object sizes.

The libSegfault change avoids calling strsignal on the SIGFAULT signal
handler (the current usage is already sketchy, adding a call that
potentially issue locale internal function is even sketchier).

Checked on x86_64-linux-gnu and i686-linux-gnu. I also run a check-abi
on all affected platforms.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
14 files changed:
NEWS
debug/segfault.c
include/signal.h
manual/signal.texi
signal/signal.h
stdio-common/psiginfo.c
stdio-common/psignal.c
stdio-common/siglist.c
string/strsignal.c
sysdeps/generic/siglist-compat.c [new file with mode: 0644]
sysdeps/generic/siglist-compat.h [new file with mode: 0644]
sysdeps/gnu/siglist.c [deleted file]
sysdeps/mach/hurd/siglist-compat.c [moved from sysdeps/mach/hurd/siglist.h with 68% similarity]
sysdeps/unix/sysv/linux/siglist-compat.c [moved from sysdeps/unix/sysv/linux/siglist.h with 62% similarity]