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)
Thu, Dec 19, 3:17 PM
Unknown Object (File)
Fri, Dec 13, 3:25 PM
Unknown Object (File)
Nov 21 2024, 6:41 AM
Unknown Object (File)
Nov 9 2024, 7:21 PM
Unknown Object (File)
Oct 1 2024, 9:40 PM
Unknown Object (File)
Oct 1 2024, 10:52 AM
Unknown Object (File)
Sep 28 2024, 3:00 PM
Unknown Object (File)
Sep 27 2024, 11:01 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