Landing: 123e4a5eab2d

Project / Subsystem

binutils / binutils/ld

Date

2026-09-22

Author

Alan Modra <amodra@sourceware.org>

Commit

123e4a5eab2db300b44288dcc1a29c903f9622f9

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils/ld
patch_id
—
commit_hash
123e4a5eab2db300b44288dcc1a29c903f9622f9
source_type
public_inbox
headline
ld: Fix SEGV in elf_orphan_compatible for PR 34450
tldr
Fixes a segmentation fault in `elf_orphan_compatible` when handling ELF sections with `SHF_LINK_ORDER`.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • binutils
  • • linker
  • • bugfix
  • • ELF
  • • crash
discussion_id_link
public_inbox:binutils#34450
bugzilla_pr
—
date
2026-09-22T00:00:00.000Z

This commit addresses a segmentation fault (SEGV) in the elf_orphan_compatible function within the GNU linker (ld). The issue occurred because the code did not properly check for null pointers when SHF_LINK_ORDER was set. The fix adds a necessary sanity check for linked_to before dereferencing it, preventing the crash.