Landing: 7322e9bc30cb
Project / Subsystem
binutils / binutils/x86-64
Date
2026-08-04
Author
H.J. Lu <hjl@sourceware.org>
Commit
7322e9bc30cb282575a701c307851fd3d66fee68
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- binutils/x86-64
- patch_id
- —
- commit_hash
- 7322e9bc30cb282575a701c307851fd3d66fee68
- source_type
- public_inbox
- headline
- Handle non-ELF input for x86-64 common definition.
- tldr
- Fixes a segfault in x86-64 common symbol definition when encountering non-ELF input.
- author
- H.J. Lu <hjl@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • linker
- • x86-64
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-04T00:00:00.000Z
This change prevents a segmentation fault in the x86-64 linker when processing non-ELF input. Previously, elf_x86_64_common_definition would crash if the input file was not in ELF format. The fix ensures that the linker returns SHN_COMMON for non-ELF input, leading to an assertion failure in bfd/coffgen.c instead of a crash, thereby improving stability.