freebsd-skq/libexec/rtld-elf
bdrewery f4f3cadf4f Fix dlsym(RTLD_NEXT) handling to only return the next library in last library cases.
The root of the problem here is that TAILQ_FOREACH_FROM will default to
the head of the list if passed NULL, which will be the case if there are
no libraries loaded after this one.  Thus all libraries, including the
current, were iterated in that case rather than none.

This was broken in r294373.

Reviewed by:	markj (earlier version), cem, kib, ngie
MFC after:	1 week
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D7216
2016-07-15 19:07:00 +00:00
..
aarch64
amd64
arm rtld-elf: use NULL instead of zero for pointers. 2016-04-19 19:03:55 +00:00
i386
mips rtld-elf: use NULL instead of zero for pointers. 2016-04-19 19:03:55 +00:00
powerpc rtld-elf: use NULL instead of zero for pointers. 2016-04-19 19:03:55 +00:00
powerpc64 rtld-elf: use NULL instead of zero for pointers. 2016-04-19 19:03:55 +00:00
riscv Follow r293066 adding a generalized exec hook for RISC-V as well. 2016-01-23 11:46:52 +00:00
sparc64
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
debug.c
debug.h
libmap.c
libmap.h
Makefile Fix race for incrementally rebuilding VERSION_MAP. 2016-07-03 17:28:39 +00:00
Makefile.depend
malloc.c libexec: minor spelling fixes in comments. 2016-05-01 19:39:23 +00:00
map_object.c MFH 2016-03-02 23:53:08 +00:00
paths.h Convert casperd(8) daemon to the libcasper. 2016-02-25 18:23:40 +00:00
rtld_lock.c
rtld_lock.h
rtld_printf.c
rtld_printf.h
rtld_tls.h
rtld.1
rtld.c Fix dlsym(RTLD_NEXT) handling to only return the next library in last library cases. 2016-07-15 19:07:00 +00:00
rtld.h MFH 2016-03-02 23:53:08 +00:00
Symbol.map
xmalloc.c