Landing: 4643afba9100
Project / Subsystem
binutils / readelf
Date
2026-07-15
Author
Alan Modra <amodra@sourceware.org>
Commit
4643afba9100939b16f50e13f085fc5bd0284930
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- readelf
- patch_id
- —
- commit_hash
- 4643afba9100939b16f50e13f085fc5bd0284930
- source_type
- public_inbox
- headline
- readelf.c: Fix gcc-4.9 compile error.
- tldr
- Fixes readelf.c compile error in GCC 4.9 due to empty struct initializer.
- author
- Alan Modra <amodra@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • readelf
- • GCC
- • compiler error
- • ELF
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-15T00:00:00.000Z
A compile error in readelf.c when using GCC 4.9 has been fixed.
The error occurred because GCC 4.9 does not permit an empty initializer for a struct, specifically Elf_Internal_Shdr section = {};.
This commit changes the initialization to use explicit field assignments, resolving the compilation issue.