Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change scratch register of tail to t2 when Zicfilp enabled.
This change is to make `tail` conform with software guarded jump of [Zicfilp]. The reason to not choose `t1` as the label register is that `t1` is also as `.got.plt` offset of `_dl_runtime_resolve` in [PLT]. [Zicfilp]: https://github.com/riscv/riscv-cfi/blob/main/cfi_forward.adoc [PLT]: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-elf.adoc#procedure-linkage-table
- Loading branch information