[llvm] r310914 - [RISCV] Recognize new relocation types

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 15 05:11:10 PDT 2017


Author: asb
Date: Tue Aug 15 05:11:10 2017
New Revision: 310914

URL: http://llvm.org/viewvc/llvm-project?rev=310914&view=rev
Log:
[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)

Modified:
    llvm/trunk/include/llvm/BinaryFormat/ELFRelocs/RISCV.def

Modified: llvm/trunk/include/llvm/BinaryFormat/ELFRelocs/RISCV.def
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/BinaryFormat/ELFRelocs/RISCV.def?rev=310914&r1=310913&r2=310914&view=diff
==============================================================================
--- llvm/trunk/include/llvm/BinaryFormat/ELFRelocs/RISCV.def (original)
+++ llvm/trunk/include/llvm/BinaryFormat/ELFRelocs/RISCV.def Tue Aug 15 05:11:10 2017
@@ -48,3 +48,12 @@ ELF_RELOC(R_RISCV_RVC_JUMP,          45)
 ELF_RELOC(R_RISCV_RVC_LUI,           46)
 ELF_RELOC(R_RISCV_GPREL_I,           47)
 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)




More information about the llvm-commits mailing list