Page MenuHomeFreeBSD

nlist.3: Clarify which symbol table is used
ClosedPublic

Authored by emaste on Mon, May 18, 3:01 PM.
Tags
None
Referenced Files
F158044029: D57065.diff
Wed, May 27, 9:19 PM
Unknown Object (File)
Mon, May 25, 6:41 AM
Unknown Object (File)
Fri, May 22, 6:47 PM
Unknown Object (File)
Fri, May 22, 12:40 AM
Unknown Object (File)
Thu, May 21, 11:15 PM
Unknown Object (File)
Thu, May 21, 8:11 PM
Unknown Object (File)
Thu, May 21, 8:00 PM
Unknown Object (File)
Thu, May 21, 12:29 PM
Subscribers

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

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.

Try to clarify sections. I can put in an explicit reference to strip(1) if you think it's worthwhile.

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
52
This revision is now accepted and ready to land.Mon, May 18, 10:54 PM

I do not believe that strip could remove section headers.

Oh, yes of course, it's the DT_* tags that rtld cares about.

This revision was automatically updated to reflect the committed changes.