opnsense-src/libexec/rtld-elf
Brooks Davis e7e964cb2e syscalls: normalize _exit(2) declerations
exit(3) is implemented by the runtime and performs a number of shutdown
actions before ultimately calling _exit(2) to terminate the program.  We
historically named the syscall table entry `exit` rather than `_exit`,
but this requires special handling in libc/libsys to cause the `_exit`
symbol to exist while implementing `exit` in libc.

Declare the syscall as `_exit` and flow that through the system.

Because syscall(SYS_exit, code) is fairly widely used, allow a
configured extra line in syscall.h to define SYS_exit to SYS__exit.

I've found no external uses of __sys_exit() so I've not bothered to
create a compatability version of this private symbol.

Reviewed by:	imp, kib, emaste
Differential Revision:	https://reviews.freebsd.org/D51672
2025-08-08 10:30:16 +01:00
..
aarch64 rtld-elf: Delete unused RELOC_ALIGNED_P copies 2025-07-11 02:07:04 +01:00
amd64 rtld-elf: Pass struct tcb * around rather than struct dtv ** 2025-05-29 17:06:49 +01:00
arm rtld-elf: Pass struct tcb * around rather than struct dtv ** 2025-05-29 17:06:49 +01:00
i386 rtld-elf: Pass struct tcb * around rather than struct dtv ** 2025-05-29 17:06:49 +01:00
powerpc rtld-elf: Pass struct tcb * around rather than struct dtv ** 2025-05-29 17:06:49 +01:00
powerpc64 rtld-elf: Pass struct tcb * around rather than struct dtv ** 2025-05-29 17:06:49 +01:00
riscv rtld-elf: Delete unused RELOC_ALIGNED_P copies 2025-07-11 02:07:04 +01:00
rtld-libc syscalls: normalize _exit(2) declerations 2025-08-08 10:30:16 +01:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
debug.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
debug.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
libmap.c Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
libmap.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libmap.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
Makefile rtld: fix dependencies for rtld-libc 2025-08-08 10:30:16 +01:00
Makefile.depend Update Makefile.depend files 2024-10-14 10:26:17 -07:00
map_object.c rtld: do not relocate tlsinit address twice 2025-07-21 08:29:05 +03:00
rtld.1 rtld.1: cross-reference rtld_get_var.3 2024-11-07 07:15:30 +02:00
rtld.c rtld-elf: Track allocated TCBs internally and use for distribute_static_tls 2025-07-10 20:00:28 +01:00
rtld.h rtld-elf: Don't include duplicate semicolon in Obj_Entry 2025-08-07 01:10:18 +01:00
rtld_lock.c rtld: add lockstate_wlocked() 2025-05-02 21:08:09 +03:00
rtld_lock.h rtld: add lockstate_wlocked() 2025-05-02 21:08:09 +03:00
rtld_malloc.c libexec: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
rtld_malloc.h Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
rtld_paths.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
rtld_printf.c rtld: Catch up to 07d90ee0a6 in subr_prf.c: Fix '+' conversion handling 2024-09-22 10:52:11 -06:00
rtld_printf.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
rtld_tls.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
rtld_utrace.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Symbol.map rtld: implement _dl_iterate_phdr_locked 2024-11-13 19:33:59 -06:00
xmalloc.c rtld: switch from malloc_aligned() to __crt_aligned_alloc() 2023-08-21 17:16:42 +03:00