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, Oct 1, 4:38 AM
Unknown Object (File)
Sat, Sep 26, 1:02 AM
Unknown Object (File)
Sat, Sep 26, 1:00 AM
Unknown Object (File)
Sat, Sep 26, 1:00 AM
Unknown Object (File)
Fri, Sep 25, 10:03 PM
Unknown Object (File)
Wed, Sep 23, 3:54 AM
Unknown Object (File)
Tue, Sep 22, 10:18 AM
Unknown Object (File)
Aug 21 2026, 7:24 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