freebsd-dev/libexec/rtld-elf/i386
Konstantin Belousov 9fee0541f2 Do not call callbacks for dl_iterate_phdr(3) with the rtld bind and
phdr locks locked.  This allows to call rtld services from the
callback, which is only reasonable for dlopen(path, RTLD_NOLOAD) to
test existence of the library in the image, and for dlsym().  The
later might still be not quite safe, due to the lazy resolution of
filters.

To allow dropping the locks around iteration in dl_iterate_phdr(3), we
insert markers to track current position between relocks.  The global
objects list is converted to tailq and all iterators skip markers,
globallist_next() and globallist_curr() helpers are added.

Reported and tested by:	davide
Reviewed by:	kan
Sponsored by:	The FreeBSD Foundation
MFC after:	3 weeks
2016-01-20 07:21:33 +00:00
..
elf_rtld.x
Makefile.inc Disable SSE in libthr 2015-08-05 12:53:55 +00:00
reloc.c Do not call callbacks for dl_iterate_phdr(3) with the rtld bind and 2016-01-20 07:21:33 +00:00
rtld_machdep.h Create a generalized exec hook that different architectures can hook 2016-01-03 04:32:02 +00:00
rtld_start.S Change compiler setting to make default visibility of the symbols for 2015-03-29 18:53:21 +00:00
Symbol.map