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, Apr 11, 7:14 AM
Unknown Object (File)
Sun, Apr 7, 5:46 AM
Unknown Object (File)
Thu, Mar 28, 2:09 PM
Unknown Object (File)
Feb 12 2024, 10:28 AM
Unknown Object (File)
Jan 9 2024, 7:09 AM
Unknown Object (File)
Dec 11 2023, 1:32 AM
Unknown Object (File)
Oct 10 2023, 8:26 PM
Unknown Object (File)
Oct 7 2023, 1:40 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable