]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
elfcopy: Optimize for insertions at the end of the section list.
authormarkj <markj@FreeBSD.org>
Thu, 30 May 2019 15:28:48 +0000 (15:28 +0000)
committermarkj <markj@FreeBSD.org>
Thu, 30 May 2019 15:28:48 +0000 (15:28 +0000)
commit7c7f66ca44833332ed0afec72dc788895aee602c
tree005941b2e6647203e9a5fa4dfa00ed3c66b80ccb
parentf94996b3a31226e6d96d357ae77793444dc649df
elfcopy: Optimize for insertions at the end of the section list.

This is the common case when strip(1) is creating the output file.
The change provides a significant speedup when running on ELF files with
many sections.

PR: 234949
Reviewed by: emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D20444
contrib/elftoolchain/elfcopy/elfcopy.h
contrib/elftoolchain/elfcopy/sections.c