[JITLink][RISCV] Add R_RISCV_RVC_BRANCH and R_RISCV_RVC_JUMP
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Sun, 1 Jan 2023 22:08:18 +0000 (23:08 +0100)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 4 Jan 2023 12:51:15 +0000 (13:51 +0100)
commitc8d43dca2332623f138d118c62176e93711f06e0
tree75d4a28b05243a09e9cbe878850f3f8fd66a42c1
parent68fe0674187d1b44058c916620a6babfa626c947
[JITLink][RISCV] Add R_RISCV_RVC_BRANCH and R_RISCV_RVC_JUMP

These are the compressed equivalents of the relocations R_RISCV_BRANCH
and R_RISCV_JAL with slightly more complex immediate handling.

Differential Revision: https://reviews.llvm.org/D140827
llvm/include/llvm/ExecutionEngine/JITLink/riscv.h
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
llvm/lib/ExecutionEngine/JITLink/riscv.cpp
llvm/test/ExecutionEngine/JITLink/RISCV/ELF_rvc.s [new file with mode: 0644]