freebsd-skq/lib/libc/include
kib 9638d3e2e6 Fix initial exec TLS mode for dynamically loaded shared objects.
If dso uses initial exec TLS mode, rtld tries to allocate TLS in
static space. If there is no space left, the dlopen(3) fails. If space
if allocated, initial content from PT_TLS segment is distributed to
all threads' pcbs, which was missed and caused un-initialized TLS
segment for such dso after dlopen(3).

The mode is auto-detected either due to the relocation used, or if the
DF_STATIC_TLS dynamic flag is set.  In the later case, the TLS segment
is tried to allocate earlier, which increases chance of the dlopen(3)
to succeed.  LLD was recently fixed to properly emit the flag, ld.bdf
did it always.

Initial test by:	dumbbell
Tested by:	emaste (amd64), ian (arm)
Tested by:	Gerald Aryeetey <aryeeteygerald_rogers.com> (arm64)
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D19072
2019-03-29 17:52:57 +00:00
..
isc SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
block_abi.h
compat.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
errlst.h Bump sys_errlist size to keep ABI backward-compatible for some time. 2018-12-27 13:02:15 +00:00
fpmath.h Add include guard to fpmath.h 2017-12-02 19:42:08 +00:00
libc_private.h Fix initial exec TLS mode for dynamically loaded shared objects. 2019-03-29 17:52:57 +00:00
namespace.h Add pthread_get_name_np(3). 2018-08-17 18:34:07 +00:00
nscache.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nscachedcli.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nss_tls.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
port_after.h
port_before.h
reentrant.h lib: Fix several typos and minor errors 2017-12-27 03:23:41 +00:00
resolv_mt.h
spinlock.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
un-namespace.h Add pthread_get_name_np(3). 2018-08-17 18:34:07 +00:00