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)
Sat, Jul 18, 10:57 AM
Unknown Object (File)
Sat, Jul 11, 5:16 PM
Unknown Object (File)
Thu, Jul 9, 6:00 AM
Unknown Object (File)
Wed, Jul 8, 9:12 AM
Unknown Object (File)
Thu, Jul 2, 2:56 PM
Unknown Object (File)
Thu, Jul 2, 3:11 AM
Unknown Object (File)
Tue, Jun 30, 10:24 PM
Unknown Object (File)
Sun, Jun 28, 5:04 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