Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change scratch register of tail to t2 when Zicfilp enabled. #93

Merged
merged 1 commit into from
Aug 2, 2024

Commits on Aug 2, 2024

  1. 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
    Yeting Kuo committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    0035839 View commit details
    Browse the repository at this point in the history