]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r359166: objcopy: add new sections also when there is no .shstrtab
authorEd Maste <emaste@FreeBSD.org>
Tue, 12 May 2020 23:51:04 +0000 (23:51 +0000)
committerEd Maste <emaste@FreeBSD.org>
Tue, 12 May 2020 23:51:04 +0000 (23:51 +0000)
commit852c35cc9cabd8af35c7240efcbffdae76f55083
tree22baa18dcb70176000efee3e5c621544478bb9d9
parent35c525dbe0648675e58309e05cf73e928c0cf175
MFC r359166: objcopy: add new sections also when there is no .shstrtab

Previously objcopy (elfcopy) --add-sections inserted new sections before
.shstrtab, but omitted them if there was no .shstrtab.

Now, after processing existing sections add new sections if they were
not yet added.

PR: 241437
Reported by: arrowd
Submitted by: Tiger Gao <tig@FreeBSDFoundation.org>
Sponsored by: The FreeBSD Foundation
contrib/elftoolchain/elfcopy/sections.c