Landing: e7b4e8eb10a5
Project / Subsystem
binutils / bfd
Date
2026-05-27
Author
Alan Modra <amodra@sourceware.org>
Commit
e7b4e8eb10a599773c7aef3f629bf67b2f7c7323
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- bfd
- patch_id
- —
- commit_hash
- e7b4e8eb10a599773c7aef3f629bf67b2f7c7323
- source_type
- public_inbox
- headline
- Ignore unsupported sframe versions instead of failing.
- tldr
- The linker now ignores unsupported sframe versions, avoiding failures and the need for `--discard-sframe`.
- author
- Alan Modra <amodra@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • bfd
- • linker
- • sframe
- • compatibility
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-27T00:00:00.000Z
Old object files assembled by binutils-2.45 with .sframe sections can cause linker failures when linked with newer binutils versions. This change modifies _bfd_elf_parse_sframe to check the sframe version and exclude unsupported versions, preventing the linker from failing and avoiding the need to manually pass --discard-sframe. The patch also adds SEC_EXCLUDE to the sframe section, and ensures memory is freed on failure paths.