Landing: 8766cf6b0900

Project / Subsystem

binutils / readelf

Date

2026-08-14

Author

Jan Beulich <jbeulich@sourceware.org>

Commit

8766cf6b090059558a45fa5e93538f7c8664cf75

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
readelf
patch_id
—
commit_hash
8766cf6b090059558a45fa5e93538f7c8664cf75
source_type
public_inbox
headline
readelf: Fold program header parsing into generic functions
tldr
Consolidates 32-bit and 64-bit program header parsing into single functions for cleaner code.
author
Jan Beulich <jbeulich@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • readelf
  • • ELF
  • • refactoring
discussion_id_link
—
bugzilla_pr
—
date
2026-08-14T00:00:00.000Z

The readelf utility now folds its 32-bit and 64-bit specific functions for parsing program headers into generic routines. This change, addressing PR binutils/34356, reduces code duplication by allowing the same code to handle different integer types. A new readelf-nn.c file is introduced to house these generic functions, while readelf.c is refactored to use them, improving maintainability.