summaryrefslogtreecommitdiff
path: root/src/ldso/dl_iterate_phdr.c
AgeCommit message (Collapse)AuthorFilesLines
2012-10-31add dl_iterate_phdr interfaceRich Felker1-0/+43
patches by Alex Caudill (npx). the dynamic-linked version is almost identical to the final submitted patch; I just added a couple missing lines for saving the phdr address when the dynamic linker is invoked directly to run a program, and removed a couple to avoid introducing another unnecessary type. the static-linked version is based on npx's draft. it could use some improvements which are contingent on the startup code saving some additional information for later use.