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)
Fri, Aug 21, 7:24 PM
Unknown Object (File)
Fri, Aug 21, 6:53 PM
Unknown Object (File)
Mon, Aug 17, 8:09 AM
Unknown Object (File)
Sat, Aug 15, 9:01 AM
Unknown Object (File)
Sat, Aug 15, 6:14 AM
Unknown Object (File)
Aug 7 2026, 1:23 PM
Unknown Object (File)
Aug 3 2026, 10:28 PM
Unknown Object (File)
Aug 3 2026, 9:49 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

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