freebsd-dev/libexec/rtld-elf
Konstantin Belousov cb5c4b10ba Add two rtld exported symbols, _rtld_atfork_pre and _rtld_atfork_post.
Threading library calls _pre before the fork, allowing the rtld to
lock itself to ensure that other threads of the process are out of
dynamic linker. _post releases the locks.

This allows the rtld to have consistent state in the child. Although
child may legitimately call only async-safe functions, the call may
need plt relocation resolution, and this requires working rtld.

Reported and debugging help by:	rink
Reviewed by:	kan, davidxu
MFC after:	1 month (anyway, not before 7.1 is out)
2008-11-27 11:27:59 +00:00
..
amd64 *thwack*! all the world's not i386. 2006-03-29 12:29:01 +00:00
arm Implement ELF symbol versioning using GNU semantics. This code aims 2005-12-18 19:43:33 +00:00
i386 Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
ia64 We don't need --export-dynamic for ld-elf.so.1, because it's a 2007-05-16 23:19:51 +00:00
mips This code has no copyright. It is fairly obvious to me that we're a 2008-10-13 20:24:03 +00:00
powerpc Include an extra header to get a function prototype. 2007-11-19 08:58:11 +00:00
sparc64 For un-prototyped static inline functions declared in pthread_md.h on 2007-12-01 14:24:44 +00:00
debug.c Fix warnings on 64 bit platforms. 2003-06-19 16:09:18 +00:00
debug.h Use C99's varadic macro syntax instead of gcc's. 2006-03-28 18:26:47 +00:00
libmap.c Fix a malloc overrun in 32-bit compat libmap lookup code. 2006-01-31 06:08:28 +00:00
libmap.h Description from Dan: 2005-02-04 02:46:41 +00:00
Makefile Enable GCC stack protection (aka Propolice) for userland: 2008-06-25 21:33:28 +00:00
malloc.c In preparation for a new malloc implementation: 2006-01-12 07:28:21 +00:00
map_object.c Implement dl_iterate_phdr function. 2007-04-03 18:31:20 +00:00
rtld_lock.c Add two rtld exported symbols, _rtld_atfork_pre and _rtld_atfork_post. 2008-11-27 11:27:59 +00:00
rtld_lock.h Add two rtld exported symbols, _rtld_atfork_pre and _rtld_atfork_post. 2008-11-27 11:27:59 +00:00
rtld_tls.h Add support for Thread Local Storage. 2004-08-03 08:51:00 +00:00
rtld.1 Make the meaning of the %A format specifier, as passed to 2008-05-15 10:47:14 +00:00
rtld.c Add two rtld exported symbols, _rtld_atfork_pre and _rtld_atfork_post. 2008-11-27 11:27:59 +00:00
rtld.h MFp4: Add mips support for dynamic linking. 2008-04-04 20:59:26 +00:00
Symbol.map Add two rtld exported symbols, _rtld_atfork_pre and _rtld_atfork_post. 2008-11-27 11:27:59 +00:00
xmalloc.c Add function prototypes. 2003-06-19 05:28:26 +00:00