Page MenuHomeFreeBSD

strip: Use a lookup instead of a linear search through sections.
ClosedPublic

Authored by markj on May 30 2019, 5:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 12:57 AM
Unknown Object (File)
Mon, Oct 13, 12:57 AM
Unknown Object (File)
Sun, Oct 12, 1:20 PM
Unknown Object (File)
Sun, Oct 12, 2:23 AM
Unknown Object (File)
Mon, Oct 6, 11:42 PM
Unknown Object (File)
Sun, Sep 28, 4:17 AM
Unknown Object (File)
Sep 18 2025, 4:58 PM
Unknown Object (File)
Sep 18 2025, 4:51 PM
Subscribers

Details

Summary

Sections have unique indexes. Just use elf_getscn() to see if there's a
match. With libelf converted to do section lookups using a binary
search tree, this is much faster than iterating through all sections.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable