Landing: e7c25d560b0e
Project / Subsystem
binutils / readelf
Date
2026-07-12
Author
Alan Modra <amodra@sourceware.org>
Commit
e7c25d560b0ee365a80dc953285f8e84f622f0b5
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- readelf
- patch_id
- —
- commit_hash
- e7c25d560b0ee365a80dc953285f8e84f622f0b5
- source_type
- public_inbox
- headline
- readelf: Improve section header handling and error reporting
- tldr
- Readelf now preserves and displays original section header values, fixes a buffer overflow risk, and improves error messages.
- author
- Alan Modra <amodra@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • readelf
- • elf
- • debugging
- • security
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-12T00:00:00.000Z
This commit enhances the readelf utility by preserving and dumping original section header values, aiding in debugging. It also addresses a potential buffer overflow in orig_section_headers that could occur if memory allocation failed during file processing before the data was freed. Additionally, warning messages have been refined for better clarity and reduced translator effort, and specific malloc failure details are no longer reported for small buffer allocations.