unstrip: Also check sh_size in compare_unalloc_sections.
authorMark Wielaard <mark@klomp.org>
Tue, 24 Jul 2018 21:34:19 +0000 (23:34 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 27 Jul 2018 12:09:21 +0000 (14:09 +0200)
commit9718c94bbce0dabe0ce048efa3a2a6d1ea08bce5
tree469ba082b135e545cbc803353c2860775cf84318
parent98ec9737922faef025ab10de15b9a653f46eaf53
unstrip: Also check sh_size in compare_unalloc_sections.

compare_unalloc_sections only checked sh_flags and the section names.
This would cause stripped/debug section mismatches when there were
multiple sections with the same name and flags. Fix this by also checking
the size of the section matches.

Add a testcase that has two ".group" sections created on i386 with the
gcc annobin plugin.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/unstrip.c
tests/ChangeLog
tests/Makefile.am
tests/run-annobingroup.sh
tests/testfile-annobingroup-i386.o.bz2 [new file with mode: 0644]