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
F151062912: D20471.diff
Sun, Apr 5, 5:49 PM
Unknown Object (File)
Sat, Apr 4, 1:54 PM
Unknown Object (File)
Sat, Apr 4, 6:31 AM
Unknown Object (File)
Thu, Mar 19, 7:11 PM
Unknown Object (File)
Sun, Mar 15, 1:13 PM
Unknown Object (File)
Thu, Mar 12, 12:53 PM
Unknown Object (File)
Mar 5 2026, 6:07 AM
Unknown Object (File)
Mar 5 2026, 12:10 AM
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

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 24603
Build 23386: arc lint + arc unit