HomeFreeBSD

elfcopy: Use libelftc's string table routines to build .shstrtab.

Description

elfcopy: Use libelftc's string table routines to build .shstrtab.

This replaces some hand-rolled routines and is substantially faster
since libelftc uses a hash table for lookups and insertions, whereas
elfcopy would perform a linear scan of the table.

PR: 234949
Reviewed by: emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D20473

Details

Provenance
markjAuthored on
Reviewer
emaste
Differential Revision
D20473: strip: Use libelftc_string_table to manage the section string table.
Parents
rS348656: vtfontcvt: unwrap a line per style(9)
Branches
Unknown
Tags
Unknown