[PATCH 0/2] RISC-V: Check for conflicting extensions when the linker merges arch attributes
Project / Subsystem
binutils / risc-v
Date
2026-07-06
Proposer
"Ethan Y. C. Liang" <ycl669@andestech.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
All attributes
- project
- binutils
- subsystem
- risc-v
- patch_id
- —
- discussion_id
- 20260706114428.3967240-1-ycl669@andestech.com
- source_type
- public_inbox
- title
- [PATCH 0/2] RISC-V: Check for conflicting extensions when the linker merges arch attributes
- headline
- RISC-V: Check for conflicting extensions when linker merges arch attributes
- tldr
- Ethan Liang proposes a two-part patch series to fix memory leaks and add checks for conflicting RISC-V extensions during linker arch attribute merges.
- proposer
- "Ethan Y. C. Liang" <ycl669@andestech.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
- []
- series_id
- binutils:risc-v: check for conflicting extensions when the linker merges arch attributes
- series_role
- cover
- series_parts
-
- • {"title":"RISC-V: Check for conflicting extensions when the linker merges arch attributes","url":"https://inbox.sourceware.org/binutils/akxe1X8wwdItOqQj@atctlc04"}
- • {"title":"RISC-V: Check for conflicting extensions when the linker merges arch attributes","url":"https://inbox.sourceware.org/binutils/CAOvetVBXAbVe47w3wjOe7N8OGw=8yOzPYyDN+uyLKVnNPe5wFw@mail.gmail.com"}
- • {"title":"RISC-V: Check for conflicting extensions when the linker merges arch attributes","url":"https://inbox.sourceware.org/binutils/CAOvetVD7==e2hm3CwR31yRKWTjTMCWDAu8cxKz08g8G2pAMEfw@mail.gmail.com"}
- • {"title":"RISC-V: Check for conflicting extensions when the linker merges arch attributes","url":"https://inbox.sourceware.org/binutils/CAOvetVBT=ZA_8Zg4cd1k1X_TDqzgvEL5uFrJnOD2NKT3r8Z0YQ@mail.gmail.com"}
- • {"title":"RISC-V: Check for conflicting extensions when the linker merges arch attributes","url":"https://inbox.sourceware.org/binutils/6ec74d05-50c8-4427-9fcd-e26c1cedf246@iscas.ac.cn"}
- • {"title":"RISC-V: Check for conflicting extensions when the linker merges arch attributes","url":"https://inbox.sourceware.org/binutils/20260706114428.3967240-3-ycl669@andestech.com"}
- tags
-
- • risc-v
- • linker
- • architecture
- • memory leak
- • conflict detection
- bugzilla_url
- —
- date
- 2026-07-06T00:00:00.000Z
[PATCH 0/2] RISC-V: Check for conflicting extensions when the linker merges arch attributes
Ethan Y. C. Liang introduces a two-patch series to address issues in the RISC-V linker’s handling of architecture attributes. The first patch cleans up memory leaks in error paths of riscv_merge_arch_attr_info. The second patch implements a crucial check: after merging input architecture strings, it re-evaluates the implicit extensions and verifies for conflicts, preventing silent failures like merging ‘rv32ic’ with ‘rv32id_zcmp’ which implies ‘zcd’ that conflicts with ‘zcmp’. The series also includes new test cases.