glibc/sysdeps/unix/sysv/linux/loongarch
Florian Weimer ee1ada1bdb elf: Rework exception handling in the dynamic loader [BZ #25486]
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
b65a82e4e7 ("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.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
2022-11-03 09:39:31 +01:00
..
bits LoongArch: Linux ABI 2022-07-26 12:35:12 -03:00
lp64 LoongArch: Build Infrastructure 2022-07-26 12:35:12 -03:00
sys LoongArch: Add greg_t and gregset_t. 2022-07-29 09:15:21 +08:00
arch-syscall.h
atomic-machine.h
clone3.S
clone.S
configure LoongArch: Add soft float support. 2022-09-01 09:10:08 +08:00
configure.ac LoongArch: Add soft float support. 2022-09-01 09:10:08 +08:00
getcontext.S LoongArch: Linux ABI 2022-07-26 12:35:12 -03:00
gettimeofday.c LoongArch: Add vdso support for gettimeofday. 2022-08-04 09:19:36 +08:00
Implies LoongArch: Build Infrastructure 2022-07-26 12:35:12 -03:00
ldd-rewrite.sed LoongArch: Add soft float support. 2022-09-01 09:10:08 +08:00
localplt.data elf: Rework exception handling in the dynamic loader [BZ #25486] 2022-11-03 09:39:31 +01:00
makecontext.c LoongArch: Linux ABI 2022-07-26 12:35:12 -03:00
Makefile LoongArch: Add soft float support. 2022-09-01 09:10:08 +08:00
pointer_guard.h Introduce <pointer_guard.h>, extracted from <sysdep.h> 2022-10-18 17:03:55 +02:00
setcontext.S LoongArch: Linux ABI 2022-07-26 12:35:12 -03:00
shlib-versions LoongArch: Add soft float support. 2022-09-01 09:10:08 +08:00
sigcontextinfo.h LoongArch: Linux ABI 2022-07-26 12:35:12 -03:00
swapcontext.S LoongArch: Linux ABI 2022-07-26 12:35:12 -03:00
sysdep.h Introduce <pointer_guard.h>, extracted from <sysdep.h> 2022-10-18 17:03:55 +02:00
sysdep.S
ucontext_i.sym LoongArch: Linux ABI 2022-07-26 12:35:12 -03:00
ucontext-macros.h LoongArch: Linux ABI 2022-07-26 12:35:12 -03:00
vfork.S