Landing: 1913e1cb7bf5
Project / Subsystem
binutils / binutils/readelf
Date
2026-07-01
Author
"H.J. Lu" <hjl@sourceware.org>
Commit
1913e1cb7bf5dce76ffcc2ee4b00d693178bf816
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- binutils/readelf
- patch_id
- —
- commit_hash
- 1913e1cb7bf5dce76ffcc2ee4b00d693178bf816
- source_type
- public_inbox
- headline
- readelf: Check for missing DT_REL and DT_RELA dynamic tags
- tldr
- readelf now properly errors out when essential relocation dynamic tags are absent.
- author
- "H.J. Lu" <hjl@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • binutils
- • readelf
- • elf
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-01T00:00:00.000Z
The readelf utility previously did not explicitly check for the presence of DT_REL and DT_RELA dynamic tags, which are crucial for processing relocations. This commit modifies the process_relocs function to detect and report an error when these tags are missing, preventing potential issues with malformed ELF files.