mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-31 14:01:18 +08:00
debug: Mark libSegFault.so as NODELETE
The signal handler installed in the ELF constructor cannot easily be removed again (because the program may have changed handlers in the meantime). Mark the object as NODELETE so that the registered handler function is never unloaded. Reviewed-by: Carlos O'Donell <carlos@redhat.com> (cherry picked from commit 23ee92deea4c99d0e6a5f48fa7b942909b123ec5)
This commit is contained in:
parent
5ac4f45c1b
commit
66b1fe1d4f
@ -168,6 +168,8 @@ extra-libs-others = $(extra-libs)
|
||||
|
||||
libSegFault-routines = segfault
|
||||
libSegFault-inhibit-o = $(filter-out .os,$(object-suffixes))
|
||||
# libSegFault.so installs a signal handler in its ELF constructor.
|
||||
LDFLAGS-SegFault.so = -Wl,--enable-new-dtags,-z,nodelete
|
||||
|
||||
libpcprofile-routines = pcprofile
|
||||
libpcprofile-inhibit-o = $(filter-out .os,$(object-suffixes))
|
||||
|
Loading…
x
Reference in New Issue
Block a user