Landing: 1dcfefd8dd49

Project / Subsystem

binutils / binutils/readelf

Date

2026-07-03

Author

"H.J. Lu" <hjl@sourceware.org>

Commit

1dcfefd8dd49e32a9880a79c8fbb9276eaade23c

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils/readelf
patch_id
commit_hash
1dcfefd8dd49e32a9880a79c8fbb9276eaade23c
source_type
public_inbox
headline
Update dynamic tag processing and validate section info.
tldr
readelf now counts DT_RELR relocations using dynamic tags and validates section header info to prevent segfaults.
author
"H.J. Lu" <hjl@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • binutils
  • readelf
  • elf
  • validation
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-07-03T00:00:00.000Z

This update enhances readelf’s ability to process ELF files by accurately counting DT_RELR relocations using dynamic tags when section headers are unavailable. It also adds validation for section header offsets and sizes, preventing segfaults caused by out-of-range values. A side effect is the display of warnings for ignored invalid section data.