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, Apr 11, 4:17 AM
Unknown Object (File)
Thu, Apr 9, 1:03 AM
Unknown Object (File)
Mon, Apr 6, 3:14 PM
Unknown Object (File)
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
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