summaryrefslogtreecommitdiff
path: root/soft-fp/gesf2.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-15 14:07:49 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-15 20:43:34 +0100
commit0552fff2977cffb5884a08b5e628fd6b08e81709 (patch)
tree10e87dbb44e512ac5746b85d9c109e2fd9ee3114 /soft-fp/gesf2.c
parentcecc925370ac13cb3268ad489a47acf35adb8381 (diff)
downloadglibc-fw/bug25486.tar.gz
elf: Rework exception handling in the dynamic loader [BZ #25486]fw/bug25486
The old exception handling implementation used function interposition to replace the dynamic loader implementation (no TLS support) with the libc implementation (TLS support). This results in problems if the link order between the dynamic loader and libc is reversed (bug 25486). The new implementation moves the entire implementation of the exception handling functions back into the dynamic loader, using THREAD_GETMEM and THREAD_SETMEM for thread-local data support. These depends on Hurd support for these macros, added in commit b65a82e4e757c1e6cb7073916 ("hurd: Add THREAD_GET/SETMEM/_NC"). One small obstacle is that the exception handling facilities are used before the TCB has been set up, so a check is needed if the TCB is available. If not, a regular global variable is used to store the exception handling information. Also rename dl-error.c to dl-catch.c, to avoid confusion with the dlerror function.
Diffstat (limited to 'soft-fp/gesf2.c')
0 files changed, 0 insertions, 0 deletions