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
F161516820: D57065.diff
Sat, Jul 4, 11:40 AM
Unknown Object (File)
Sat, Jul 4, 6:43 AM
Unknown Object (File)
Thu, Jul 2, 2:02 PM
Unknown Object (File)
Tue, Jun 23, 12:19 AM
Unknown Object (File)
Sat, Jun 20, 5:25 PM
Unknown Object (File)
Sat, Jun 20, 12:38 PM
Unknown Object (File)
Wed, Jun 17, 1:05 PM
Unknown Object (File)
Mon, Jun 8, 3:43 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.