NetBSD/libexec/ld.elf_so
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
..
arch
Makefile
README
debug.c
debug.h
headers.c
ld.elf_so.1
load.c
malloc.c
map_object.c
paths.c
reloc.c Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works. 2003-08-12 09:18:38 +00:00
rtld.c Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works. 2003-08-12 09:18:38 +00:00
rtld.h Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works. 2003-08-12 09:18:38 +00:00
rtldenv.h
search.c Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works. 2003-08-12 09:18:38 +00:00
symbol.c Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works. 2003-08-12 09:18:38 +00:00
sysident.h
xmalloc.c
xprintf.c

README

$NetBSD: README,v 1.10 2002/09/13 04:05:00 mycroft Exp $

TO DO:

* Support for coexistance of 32-bit and 64-bit ELF on platforms that can
  do that.