1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/lib/libthr
Konstantin Belousov 3638455c92 Avoid conflicts with libc symbols in libthr jump table.
In some corner cases of static linking and unexpected libraries order
on the linker command line, libc symbol might preempt the same libthr
symbol, in which case libthr jump table points back to libc causing
either infinite recursion or loop.  Handle all of such symbols by
using private libthr names for them, ensuring that the right pointers
are installed into the table.

In collaboration with: arichardson
PR:	239475
Tested by:	pho
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D21088
2019-07-31 20:04:39 +00:00
..
arch Fix initial exec TLS mode for dynamically loaded shared objects. 2019-03-29 17:52:57 +00:00
sys
tests
thread Avoid conflicts with libc symbols in libthr jump table. 2019-07-31 20:04:39 +00:00
libthr.3
Makefile Fix initial exec TLS mode for dynamically loaded shared objects. 2019-03-29 17:52:57 +00:00
Makefile.depend
plockstat.d
pthread.map Fix initial exec TLS mode for dynamically loaded shared objects. 2019-03-29 17:52:57 +00:00