[PATCH] D112999: [RISCV][ELF] Remove internal binutils relocations

Alex Bradbury via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 2 04:04:12 PDT 2021


asb created this revision.
asb added a reviewer: jrtc27.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar.
asb requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.

These relocations have been removed from the psABI doc in https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/199. This patch simply updates llvm/include/llvm/BinaryFormat/ELFRelocs/RISCV.def to match.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112999

Files:
  llvm/include/llvm/BinaryFormat/ELFRelocs/RISCV.def


Index: llvm/include/llvm/BinaryFormat/ELFRelocs/RISCV.def
===================================================================
--- llvm/include/llvm/BinaryFormat/ELFRelocs/RISCV.def
+++ llvm/include/llvm/BinaryFormat/ELFRelocs/RISCV.def
@@ -46,10 +46,6 @@
 ELF_RELOC(R_RISCV_RVC_BRANCH,        44)
 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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112999.384031.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211102/0d9297be/attachment.bin>


More information about the llvm-commits mailing list