OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
745921f
)
[RISCV] Recognize new relocation types
author
Alex Bradbury
<asb@lowrisc.org>
Tue, 15 Aug 2017 12:11:10 +0000
(12:11 +0000)
committer
Alex Bradbury
<asb@lowrisc.org>
Tue, 15 Aug 2017 12:11:10 +0000
(12:11 +0000)
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310914
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/BinaryFormat/ELFRelocs/RISCV.def
patch
|
blob
|
history
diff --git
a/include/llvm/BinaryFormat/ELFRelocs/RISCV.def
b/include/llvm/BinaryFormat/ELFRelocs/RISCV.def
index
9ec4955
..
5cc4c0e
100644
(file)
--- a/
include/llvm/BinaryFormat/ELFRelocs/RISCV.def
+++ b/
include/llvm/BinaryFormat/ELFRelocs/RISCV.def
@@
-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)