riscv / riscv-cfi

This repo holds the work area and revisions of the RISC-V CFI (Shadow Stack and Landing Pads) specifications. CFI defines the privileged and unprivileged ISA extensions that can be used by privileged and unprivileged programs to protect the integrity of their control-flow.

Home Page:https://jira.riscv.org/browse/RVG-80

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only JALR can return, and JAL doesn't have rs1

Larhzu opened this issue · comments

In cfi_intro.adoc:

A JAL or JALR may be used to perform either a procedure call or a return from a procedure.

Only JALR can be used for returning.

and a JAL/JALR where rs1 is the conventional link register

JAL doesn't have rs1.

Updated in PR #120