From f9fc50c3eced243c0648fb0fbfe2c9877c25e1e4 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 29 Jul 2015 17:51:27 +0200 Subject: unstrip: Handle debuginfo files with missing SHF_INFO_LINK section flags. With GCC 5 there might be a .rela.plt section with SHF_INFO_LINK set. Buggy binutils objdump might strip it from the section in the debug file. Ignore such differences for relocation sections and put the flag back if necessary. Also improve the error message a little by only discarding the already matched sections if there is an prelink undo section. Otherwise we will report all sections as not matching if the file wasn't prelinked instead of just the non-matching sections. New testfiles generated by gcc5 and binutils objdump added. Signed-off-by: Mark Wielaard --- tests/testfile-info-link.debuginfo.bz2 | Bin 0 -> 1844 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100755 tests/testfile-info-link.debuginfo.bz2 (limited to 'tests/testfile-info-link.debuginfo.bz2') diff --git a/tests/testfile-info-link.debuginfo.bz2 b/tests/testfile-info-link.debuginfo.bz2 new file mode 100755 index 00000000..3225d19f Binary files /dev/null and b/tests/testfile-info-link.debuginfo.bz2 differ -- cgit v1.2.3