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
F105997835: D20471.diff
Mon, Dec 23, 4:15 PM
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
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