1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

[RISCV] Recognize new relocation types

This patch adds all RISC-V relocation types, as of binutils 2.29. Note that 
R_RISCV32_PCREL is not currently documented in the RISC-V ELF PSABI.

Differential Revision: https://reviews.llvm.org/D36455

Patch by Chih-Mao Chen (@PkmX)

llvm-svn: 310914
This commit is contained in:
Alex Bradbury 2017-08-15 12:11:10 +00:00
parent 43ce19524f
commit 999d5f4bb4

View File

@ -48,3 +48,12 @@ ELF_RELOC(R_RISCV_RVC_JUMP, 45)
ELF_RELOC(R_RISCV_RVC_LUI, 46) ELF_RELOC(R_RISCV_RVC_LUI, 46)
ELF_RELOC(R_RISCV_GPREL_I, 47) ELF_RELOC(R_RISCV_GPREL_I, 47)
ELF_RELOC(R_RISCV_GPREL_S, 48) ELF_RELOC(R_RISCV_GPREL_S, 48)
ELF_RELOC(R_RISCV_TPREL_I, 49)
ELF_RELOC(R_RISCV_TPREL_S, 50)
ELF_RELOC(R_RISCV_RELAX, 51)
ELF_RELOC(R_RISCV_SUB6, 52)
ELF_RELOC(R_RISCV_SET6, 53)
ELF_RELOC(R_RISCV_SET8, 54)
ELF_RELOC(R_RISCV_SET16, 55)
ELF_RELOC(R_RISCV_SET32, 56)
ELF_RELOC(R_RISCV_32_PCREL, 57)