dladdr support for dynamic linker (nonstandard extension)
authorRich Felker <dalias@aerifal.cx>
Mon, 27 Aug 2012 01:09:26 +0000 (21:09 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 27 Aug 2012 01:09:26 +0000 (21:09 -0400)
commitf419bcb9dcfb6af60fbf1d58d92caf4b3d62a4da
treef9b1fc4c34d59ee892504c7259100e94140d3e98
parent9bff7c133e73ecfb200614d7a7d386a164a1a61f
dladdr support for dynamic linker (nonstandard extension)

based on patches submitted by boris brezillon. this commit also fixes
the issue whereby the main application and libc don't have the address
ranges of their mappings stored, which was theoretically a problem for
RTLD_NEXT support in dlsym; it didn't actually matter because libc
never calls dlsym, and it seemed to be doing the right thing (by
chance) for symbols in the main program as well.
include/dlfcn.h
src/ldso/dladdr.c [new file with mode: 0644]
src/ldso/dynlink.c