NetBSD/usr.bin/ldd
skrll d900731978 Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works.
Previously dlsym resolved to the version in crt0.o or libc which would
mean that the caller's shared object couldn't be determined correctly
using __builtin_return_address(0).

Mainly from FreeBSD, but adapted by me. Benefits of this solutions are:

	- backward comptibility maintained
	- existing broken binaries are fixed with a new ld.elf_so
	- __mainprog_obj can be removed from crt0.o
	- we do the same thing as FreeBSD

Fixes PR 22067.

OKed by Jason and Christos.
2003-08-12 09:18:38 +00:00
..
ldd_aout convert to use getprogname() 2001-02-19 23:03:42 +00:00
ldd_elf Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works. 2003-08-12 09:18:38 +00:00
Makefile Move a.out version of ldd(1) to the usr.bin tree; elf and a.out 1998-12-15 22:07:11 +00:00
Makefile.inc Move a.out version of ldd(1) to the usr.bin tree; elf and a.out 1998-12-15 22:07:11 +00:00
ldd.1 Sort sections, sort SEE ALSO, bump date for last. 2003-04-24 12:06:56 +00:00