We just want to make sure that any section data is decompressed before
use, if the section was already decompressed that is fine, so just ignore
any errors. The make this more clear, explicitly check for errors, then
don't do anything. This is better than silently ignoring since everywhere
else in the code we do explicitly check for errors.
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2020-06-16 Mark Wielaard <mark@klomp.org>
+
+ * elflint.c (check_elf_header): Explicitly check and ignore
+ any error from elf_compress.
+
2020-06-07 Mark Wielaard <mark@klomp.org>
* nm.c (sort_by_name_strtab): Replace by...
break;
/* If the section wasn't compressed this does nothing, but
returns an error. We don't care. */
- elf_compress (scn, 0, 0);
+ if (elf_compress (scn, 0, 0) < 0) { ; }
}
if (scnt < shnum)
ERROR (gettext ("Can only check %u headers, shnum was %u\n"), scnt, shnum);