summaryrefslogtreecommitdiff
path: root/src/ldso/dladdr.c
AgeCommit message (Collapse)AuthorLines
2014-01-06const-qualify the address argument to dladdrRich Felker-2/+2
this agrees with implementation practice on glibc and BSD systems, and is the const-correct way to do things; it eliminates warnings from passing pointers to const. the prototype without const came from seemingly erroneous man pages.
2012-08-26dladdr support for dynamic linker (nonstandard extension)Rich Felker-0/+9
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.