nlist() currently fetches symbol names only from SHT_SYMTAB.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I would also mention that the function uses section headers to look up symtab, which means that a legitimate binary with sections stripped would not work.
Comment Actions
Try to clarify sections. I can put in an explicit reference to strip(1) if you think it's worthwhile.
Comment Actions
I do not believe that strip could remove section headers. It is either linker script or linker which would do that, or some more involved ELF editing tool.
Point is that rtld does not need sections at all.
| lib/libc/gen/nlist.3 | ||
|---|---|---|
| 48 | ||
Comment Actions
I do not believe that strip could remove section headers.
Oh, yes of course, it's the DT_* tags that rtld cares about.