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
F110721327: D20471.diff
Sat, Feb 22, 8:09 AM
Unknown Object (File)
Fri, Jan 24, 5:08 PM
Unknown Object (File)
Jan 22 2025, 8:46 AM
Unknown Object (File)
Jan 6 2025, 9:56 PM
Unknown Object (File)
Dec 23 2024, 7:43 PM
Unknown Object (File)
Dec 23 2024, 4:15 PM
Unknown Object (File)
Dec 19 2024, 3:17 PM
Unknown Object (File)
Dec 13 2024, 3:25 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