strip: Always copy over any phdrs if there are any.
authorMark Wielaard <mark@klomp.org>
Thu, 25 Oct 2018 10:37:04 +0000 (12:37 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 6 Nov 2018 11:07:48 +0000 (12:07 +0100)
commitb15ee95bcee45482e5d864c0048804117c1ada63
tree83c38dfe6b002f9a880aacfb9649fd33bb51f4c5
parente574889d92b123a2e62aa2f32bab00af86bfe5fd
strip: Always copy over any phdrs if there are any.

Ignore the type of ELF file, just copy over any phdrs if the original
file contained any. Also refuse to move around any allocated sections
based on whether there are any phdrs instead of on ELF file type.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/strip.c