x86: Check if needed dynamic relocation section is created

Project / Subsystem

binutils / x86

Date

2026-08-01

Proposer

H.J. Lu <hjl.tools@gmail.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

—/10

Technical tradeoffs

  • • Addresses a specific failure mode rather than the root cause of bad relocations.

All attributes

project
binutils
subsystem
x86
patch_id
—
discussion_id
CAMe9rOqE8c=qO3Twv=WXN767ngZgcc0Xz+0Y+k+sA=Wxz-EyYA@mail.gmail.com
source_type
public_inbox
title
x86: Check if needed dynamic relocation section is created
headline
x86: Check if needed dynamic relocation section is created
tldr
Fixes binutils to avoid aborting when a needed dynamic relocation section is not created.
proposer
H.J. Lu <hjl.tools@gmail.com>
consensus
Proposed
outcome
proposed
sentiment_score
—
technical_tradeoffs
  • • Addresses a specific failure mode rather than the root cause of bad relocations.
series_id
—
series_role
standalone
series_parts
[]
tags
  • • bugfix
  • • linker
  • • x86
bugzilla_url
—
date
2026-08-01T00:00:00.000Z

x86: Check if needed dynamic relocation section is created

This patch for binutils addresses an issue where the elf_link_read_relocs_from_section function aborts on bad relocations, preventing the creation of needed dynamic relocation sections. It proposes to skip dynamic relocation counting if the section hasn’t been created, resolving PR ld/34448.