binutils Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
risc-v

RISC-V: Update landing pad PLT for Zicfilp to match psABI

Updates the RISC-V landing pad PLT for Zicfilp to conform to the latest psABI.

The unlabeled landing pad PLT for RISC-V’s Zicfilp extension has been updated to align with the latest processor ABI (psABI). This change modifies the PLT entries and header to use register t2 for target addresses instead of t3, and optimizes the PLT header size. These adjustments are backward compatible as they are generated by the linker.

In Details

This commit revises the linker-generated PLT for RISC-V targets supporting the Zicfilp extension. It adheres to the updated RISC-V psABI, which standardizes the use of register t2 for holding indirect jump targets within the PLT. The PLT header is also modified for size and to accommodate the new register usage. This ensures correct control-flow integrity enforcement with Zicfilp when using the default linker-generated PLT.

For Context
PLT
Procedure Linkage Table. A table used in ELF executables to resolve calls to shared library functions dynamically at runtime. It acts as an intermediary between the calling code and the actual function in a shared library.
Zicfilp
A RISC-V extension that enables compiler-generated landing pads in the Procedure Linkage Table (PLT) to facilitate Control-Flow Integrity (CFI) checks. It helps ensure that indirect calls and returns go to valid targets.
psABI
Processor-specific Application Binary Interface. Defines the low-level conventions for how software communicates with the hardware and the operating system, including register usage, calling conventions, and memory layout.
RISC-V
An open-standard instruction set architecture (ISA) based on reduced instruction set computing principles.
ELF
Executable and Linkable Format. A standard file format for executables, object code, shared libraries, and core dumps, used on many Unix-like systems.
Filed Under: risc-vlinkerpltabi