Re: [PATCH] unstrip: Also check sh_size in compare_unalloc_sections.

2018-07-27 Thread Mark Wielaard
On Wed, 2018-07-25 at 00:15 +0200, Mark Wielaard wrote: > 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

[PATCH] unstrip: Also check sh_size in compare_unalloc_sections.

2018-07-24 Thread Mark Wielaard
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