Landing: ba3e439f17aa

Project / Subsystem

binutils / loongarch

Date

2026-09-15

Author

Alan Modra <amodra@sourceware.org>

Commit

ba3e439f17aabdb5b1a9ca61646f9c22604ab259

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
loongarch
patch_id
—
commit_hash
ba3e439f17aabdb5b1a9ca61646f9c22604ab259
source_type
public_inbox
headline
loongarch: Use linker stubs bfd instead of linker aligns bfd
tldr
LoongArch now uses the generic linker stubs BFD, improving code sharing and enabling dynamic section support.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • loongarch
  • • binutils
  • • linker
  • • code sharing
  • • ELF
discussion_id_link
—
bugzilla_pr
—
date
2026-09-15T00:00:00.000Z

This change switches the LoongArch backend to use the common “linker stubs” BFD instead of its previous “linker aligns” BFD. This allows LoongArch to leverage more shared code within binutils. Additionally, the linker stubs BFD is now created for all linker modes, not just relocatable linking, making it available for dynamic sections and improving its utility. The testsuite has been updated to accommodate these changes.