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, Nov 20, 10:52 PM
Unknown Object (File)
Thu, Nov 20, 10:46 PM
Unknown Object (File)
Thu, Nov 20, 10:44 PM
Unknown Object (File)
Thu, Nov 20, 10:43 PM
Unknown Object (File)
Tue, Nov 18, 2:13 PM
Unknown Object (File)
Mon, Nov 17, 6:23 PM
Unknown Object (File)
Mon, Nov 17, 1:00 PM
Unknown Object (File)
Sun, Nov 16, 11:20 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