]> git.ipfire.org Git - thirdparty/elfutils.git/commit
strip: Also handle gnu compressed debug sections with --reloc-debug-sections
authorMark Wielaard <mark@klomp.org>
Fri, 9 Nov 2018 14:19:07 +0000 (15:19 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 13 Nov 2018 15:53:40 +0000 (16:53 +0100)
commitd3e6266754b95244063aa1e40c531fdd57259332
tree0e7a087d2e349428b5acc63373b9083838880a76
parent72e30c2e0cb49a9a300667fdd5ff09082f717950
strip: Also handle gnu compressed debug sections with --reloc-debug-sections

Check whether a section was gnu compressed and decompress it first
before trying to resolve relocations. Recompress it afterwards.

This found a bug in elf_compress_gnu which would use the "raw" file
contents even if the user had just created the section (copying over
the section from the original input file).

Add compressed ET_REL tests to run-strip-reloc.sh testcase.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libelf/ChangeLog
libelf/elf_compress_gnu.c
src/ChangeLog
src/strip.c
tests/ChangeLog
tests/run-strip-reloc.sh