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)
Mon, Jan 19, 4:05 AM
Unknown Object (File)
Wed, Jan 14, 5:08 PM
Unknown Object (File)
Dec 25 2025, 7:42 PM
Unknown Object (File)
Nov 24 2025, 1:15 AM
Unknown Object (File)
Nov 20 2025, 10:52 PM
Unknown Object (File)
Nov 20 2025, 10:46 PM
Unknown Object (File)
Nov 20 2025, 10:44 PM
Unknown Object (File)
Nov 20 2025, 10:43 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