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 include <string.h> or <stdlib.h> for all prototypes 2003-07-26 15:04:38 +00:00
debug.c KNF- blank lines before code at start of functions. 2003-06-05 10:41:32 +00:00
debug.h Nuke -DRTLD_RELOCATE_SELF and `dodebug' from orbit. 2002-09-12 22:56:28 +00:00
headers.c ANSIfy and de-__P(). 2003-07-24 10:12:25 +00:00
ld.elf_so.1 .Nm does not need a dummy argument ("") before punctuation or 2003-02-25 10:34:36 +00:00
load.c ANSIfy and de-__P(). 2003-07-24 10:12:25 +00:00
Makefile Add support for shared libraries/dynamically linked binaries on sh5. 2003-03-25 13:11:53 +00:00
malloc.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:46:37 +00:00
map_object.c ANSIfy and de-__P(). 2003-07-24 10:12:25 +00:00
paths.c ANSIfy and de-__P(). 2003-07-24 10:12:25 +00:00
README Almost all of the items in here are done. 2002-09-13 04:05:00 +00:00
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 ANSIfy and de-__P(). 2003-07-24 10:12:25 +00:00
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 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
xmalloc.c ANSIfy and de-__P(). 2003-07-24 10:12:25 +00:00
xprintf.c ANSIfy and de-__P(). 2003-07-24 10:12:25 +00:00

$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.