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)
Sun, May 24, 3:57 AM
Unknown Object (File)
Wed, May 20, 4:07 AM
Unknown Object (File)
Sun, May 17, 3:44 AM
Unknown Object (File)
Sun, May 17, 3:23 AM
Unknown Object (File)
Sun, May 3, 6:55 PM
Unknown Object (File)
Wed, Apr 29, 9:58 PM
Unknown Object (File)
Wed, Apr 29, 9:58 PM
Unknown Object (File)
Wed, Apr 29, 9:58 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