Page MenuHomeFreeBSD

nlist.3: Clarify which symbol table is used
ClosedPublic

Authored by emaste on May 18 2026, 3:01 PM.
Tags
None
Referenced Files
F167521895: D57065.id178013.diff
Sat, Aug 22, 11:16 AM
Unknown Object (File)
Fri, Aug 14, 4:42 PM
Unknown Object (File)
Thu, Aug 13, 12:57 AM
Unknown Object (File)
Wed, Aug 12, 4:18 PM
Unknown Object (File)
Tue, Aug 11, 8:27 PM
Unknown Object (File)
Mon, Aug 10, 12:21 PM
Unknown Object (File)
Mon, Aug 10, 5:44 AM
Unknown Object (File)
Sun, Aug 9, 8:54 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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
48
This revision is now accepted and ready to land.May 18 2026, 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.