[PATCH] RISC-V: Add -z zicfilp=, -z zicfiss= and the CFI report options
Project / Subsystem
binutils / risc-v
Date
2026-10-05
Proposer
Kito Cheng <kito.cheng@sifive.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
Technical tradeoffs
- • Adds complexity to the linker command line with new options. Ensures better CFI compliance for RISC-V targets.
All attributes
- project
- binutils
- subsystem
- risc-v
- patch_id
- —
- discussion_id
- 20261005104510.2634206-1-kito.cheng@sifive.com
- source_type
- public_inbox
- title
- [PATCH] RISC-V: Add -z zicfilp=, -z zicfiss= and the CFI report options
- headline
- RISC-V: Add -z zicfilp=, -z zicfiss= and the CFI report options
- tldr
- Kito Cheng adds linker options for RISC-V CFI properties (-z zicfilp=, -z zicfiss=) and reporting, following RISC-V toolchain conventions.
- proposer
- Kito Cheng <kito.cheng@sifive.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
-
- • Adds complexity to the linker command line with new options. Ensures better CFI compliance for RISC-V targets.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • risc-v
- • linker
- • cfi
- • security
- • elf
- bugzilla_url
- —
- date
- 2026-10-05T00:00:00.000Z
[PATCH] RISC-V: Add -z zicfilp=, -z zicfiss= and the CFI report options
Kito Cheng has submitted a patch to binutils that introduces new linker options for RISC-V Control Flow Integrity (CFI) properties. These options, -z zicfilp= and -z zicfiss=, along with corresponding reporting flags, are defined by the RISC-V toolchain conventions and align with similar functionality in LLVM. The patch enables control over how CFI properties are handled and reported during the linking process, with options for implicit, labeled, and explicit settings, as well as reporting severity.