Landing: c1c4795df872
Project / Subsystem
binutils / binutils/readelf
Date
2026-07-01
Author
"H.J. Lu" <hjl@sourceware.org>
Commit
c1c4795df872f48b7f3659cae5974a6ae4f917ea
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- binutils/readelf
- patch_id
- —
- commit_hash
- c1c4795df872f48b7f3659cae5974a6ae4f917ea
- source_type
- public_inbox
- headline
- readelf: Avoid uninitialized variable warnings with early exit
- tldr
- Fixes uninitialized variable warnings in readelf when dynamic tags are missing, improving compiler compatibility.
- author
- "H.J. Lu" <hjl@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • binutils
- • readelf
- • compiler-warnings
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-01T00:00:00.000Z
The readelf utility previously could trigger “may be used uninitialized” warnings from GCC 14 due to early returns in the process_relocs function. This change clears the rel_entsz and entsz_name variables before returning an error when DT_REL or DT_RELA tags are missing. It also updates the handling of unknown relocation types to improve robustness with newer compiler versions.