glibc/sysdeps/unix/sysv/linux/or1k
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
sys
arch-syscall.h Update syscall lists for Linux 5.17 2022-03-23 17:11:56 +00:00
c++-types.data or1k: ABI lists 2022-01-05 06:40:06 +09:00
clone.c
configure or1k: Build Infrastructure 2022-01-05 06:40:06 +09:00
configure.ac or1k: Build Infrastructure 2022-01-05 06:40:06 +09:00
getcontext.S
Implies or1k: Build Infrastructure 2022-01-05 06:40:06 +09:00
ld.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libBrokenLocale.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libc_malloc_debug.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libc.abilist stdlib: Add arc4random, arc4random_buf, and arc4random_uniform (BZ #4417) 2022-07-22 11:58:27 -03:00
libcrypt.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libm.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libresolv.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
libthread_db.abilist or1k: ABI lists 2022-01-05 06:40:06 +09:00
localplt.data elf: Rework exception handling in the dynamic loader [BZ #25486] 2022-11-03 09:39:31 +01:00
makecontext.c
Makefile or1k: Build Infrastructure 2022-01-05 06:40:06 +09:00
mmap_internal.h
or1k_clone.S
setcontext.S
shlib-versions or1k: Build Infrastructure 2022-01-05 06:40:06 +09:00
sigcontextinfo.h
swapcontext.S
sysdep.c
sysdep.h Introduce <pointer_guard.h>, extracted from <sysdep.h> 2022-10-18 17:03:55 +02:00
ucontext_i.sym