[PATCH] readelf: Change some errors to warnings
H.J. Lu
hjl.tools@gmail.com
Sun Aug 9 00:25:01 GMT 2026
Change readelf to return error if there are errors in inputs. Since
invalid LEB and sh_entsize values in the readelf input aren't fatal
errors, replace error with warn for these to avoid
FAIL: readelf -Wwi pr26548e (reason: unexpected output)
FAIL: readelf -SW corrupt-1 (reason: unexpected output)
PR binutils/34500
* dwarf.h (report_leb_status): Replace error with warn.
* readelf.c (process_section_headers): Replace error with warn
on invalid sh_entsize value.
(main): Return error if seen_elf_error returns true.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-readelf-Change-some-errors-to-warnings.patch
Type: text/x-patch
Size: 2615 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260809/a1e7cb5f/attachment.bin>
More information about the Binutils
mailing list