]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
elfcopy: Provide a size hint when creating the section string table.
authormarkj <markj@FreeBSD.org>
Wed, 26 Jun 2019 16:35:37 +0000 (16:35 +0000)
committermarkj <markj@FreeBSD.org>
Wed, 26 Jun 2019 16:35:37 +0000 (16:35 +0000)
commitda2dec8da831406f7939e510bca816e7fc21ea49
tree5e305cee86e06fb481103039de07a9cf2561be4f
parent03851368d1cfa7ff88a947a349662944e0aa9ab3
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
contrib/elftoolchain/elfcopy/sections.c