freebsd-skq/libexec/rtld-elf
jdp 52ec4df9e8 Add a new function dllockinit() for registering thread locking
functions to be used by the dynamic linker.  This can be called by
threads packages at start-up time.  I will add the call to libc_r
soon.

Also add a default locking method that is used up until dllockinit()
is called.  The default method works by blocking SIGVTALRM, SIGPROF,
and SIGALRM in critical sections.  It is based on the observation
that most user-space threads packages implement thread preemption
with one of these signals (usually SIGVTALRM).

The dynamic linker has never been reentrant, but it became less
reentrant in revision 1.34 of "src/libexec/rtld-elf/rtld.c".
Starting with that revision, multiple threads each doing lazy
binding could interfere with each other.  The usual symptom was
that a symbol was falsely reported as undefined at start-up time.
It was rare but not unseen.  This commit fixes it.
1999-12-27 04:44:04 +00:00
..
alpha Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
amd64 Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
i386 Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
debug.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
debug.h Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
lockdflt.c Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
Makefile Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
malloc.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
map_object.c Get the actual pathname of the dynamic linker from the executable's 1999-08-30 01:54:13 +00:00
rtld.1 .Nm += "rtld" 1999-09-28 05:35:59 +00:00
rtld.c Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
rtld.h Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
xmalloc.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00