Landing: a270b84fca1e

Project / Subsystem

binutils / risc-v

Date

2026-07-09

Author

Nelson Chu <nelsonc1225@sourceware.org>

Commit

a270b84fca1e9705655317c8b9428d3411f7a7f1

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
risc-v
patch_id
commit_hash
a270b84fca1e9705655317c8b9428d3411f7a7f1
source_type
public_inbox
headline
RISC-V: Detect conflicting extensions during linker arch attribute merges
tldr
Linker now correctly rejects merges of RISC-V object files with conflicting architecture extensions.
author
Nelson Chu <nelsonc1225@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • RISC-V
  • linker
  • ABI
discussion_id_link
bugzilla_pr
date
2026-07-09T00:00:00.000Z

The RISC-V linker has been updated to detect and reject merges of object files that would result in conflicting architecture extensions. Previously, the linker validated individual inputs but not the combined result, potentially allowing incompatible extensions to coexist. The change adds checks for implied extensions and conflicts after merging, also including new test cases for such scenarios.