opnsense-src/lib/libc/amd64
Jessica Clarke 250b2eda0a libc, libthr: Ditch MD __pthread_distribute_static_tls helpers
_libc_get_static_tls_base() is just _tcb_get() followed by adding (for
Variant I) or subtracting (for Variant II) the offset, so just inline
that as the implementation (like we do in rtld-elf) rather than having
another copy (or equivalent) of _tcb_get()'s assembly.

_get_static_tls_base() doesn't even have any MD assembly as it's
reading thr->tcb, the only difference is whether to add or subtract, so
again just inline that.

Whilst here add some missing blank lines to comply with style(9) for
elf_utils.c's includes, and use a pointer type rather than uintptr_t to
reduce the need to cast, as is done in rtld-elf.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D50592
2025-05-29 17:06:54 +01:00
..
gen Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
stdlib Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
string lib/libc/amd64/string: fix overread condition in memccpy 2024-07-29 21:36:10 +02:00
_fpmath.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
amd64_archlevel.h lib/libc/amd64: add archlevel-based simd dispatch framework 2023-08-04 01:53:43 +03:00
arith.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
gd_qnan.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Symbol.map lib{c,sys}: return wrapped syscall APIs to libc 2024-03-13 18:36:02 +00:00