HomeFreeBSD

elfcopy: Provide a size hint when creating the section string table.

Description

elfcopy: Provide a size hint when creating the section string table.

Use the input file's .shstrtab size as the hint if it exists. This
gives a small performance improvement when processing files with
many sections.

Reviewed by: emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D20544

Details

Provenance
markjAuthored on Jun 26 2019, 4:35 PM
Parents
rG9810827a3a97: libelftc: Fix the documented prototype for elftc_string_table_destroy().
Branches
Unknown
Tags
Unknown

Event Timeline