HomeFreeBSD

Avoid conflicts with libc symbols in libthr jump table.

Description

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

Details

Provenance
kibAuthored on
Differential Revision
D21088: Avoid conflicts with libc symbols in libthr jump table.
Parents
rS350480: Regen.
Branches
Unknown
Tags
Unknown