HomeFreeBSD

MFC r359166: objcopy: add new sections also when there is no .shstrtab

Description

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

Details

Provenance
emasteAuthored on
Parents
rS360995: Kill trailing newline while I'm here...
Branches
Unknown
Tags
Unknown