[PATCH] microblaze: neutralise relocations against discarded sections

Project / Subsystem

binutils / microblaze

Date

2026-08-13

Proposer

Sam Price <thesamprice@gmail.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

7/10

Technical tradeoffs

  • • Neutralizing relocations prevents incorrect data but might mask underlying issues if the discarded sections were intended to be present.
  • • Adopting standard BFD practices ensures consistency across targets.

All attributes

project
binutils
subsystem
microblaze
patch_id
—
discussion_id
20260813044529.81534-1-thesamprice@gmail.com
source_type
public_inbox
title
[PATCH] microblaze: neutralise relocations against discarded sections
headline
microblaze: Neutralize relocations against discarded sections
tldr
Patch corrects GNU ld for MicroBlaze by neutralizing relocations against symbols in discarded sections, fixing garbage in debug sections.
proposer
Sam Price <thesamprice@gmail.com>
consensus
Proposed
outcome
ready
sentiment_score
7
technical_tradeoffs
  • • Neutralizing relocations prevents incorrect data but might mask underlying issues if the discarded sections were intended to be present.
  • • Adopting standard BFD practices ensures consistency across targets.
series_id
—
series_role
standalone
series_parts
[]
tags
  • • ld
  • • microblaze
  • • bugfix
  • • relocation
  • • debug
bugzilla_url
—
date
2026-08-13T00:00:00.000Z

[PATCH] microblaze: neutralise relocations against discarded sections

This patch addresses a bug in the MicroBlaze ELF linker where relocations against symbols in discarded sections were not properly handled. This led to garbage data appearing in debug sections instead of expected zeros. The fix neutralizes these problematic relocations, aligning with behavior in other BFD backends and correcting existing test failures.