[PATCH] D136985: [JITLink][RISCV] Add names for GOT/PLT relocations

Jonas Hahnfeld via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 28 14:09:19 PDT 2022


Hahnfeld created this revision.
Hahnfeld added reviewers: StephenFan, lhames, sgraenitz.
Herald added subscribers: sunshaoce, VincentWu, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
Hahnfeld requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD.
Herald added a project: LLVM.

It is confusing to see "Unrecognized edge kind" in debugging output
for supported relocations; this was probably an oversight in commit
rG89f546f6ba <https://reviews.llvm.org/rG89f546f6ba1c21041f1e44657cb9980baf4cd4e6> which added the support.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136985

Files:
  llvm/lib/ExecutionEngine/JITLink/riscv.cpp


Index: llvm/lib/ExecutionEngine/JITLink/riscv.cpp
===================================================================
--- llvm/lib/ExecutionEngine/JITLink/riscv.cpp
+++ llvm/lib/ExecutionEngine/JITLink/riscv.cpp
@@ -42,6 +42,10 @@
     return "R_RISCV_CALL";
   case R_RISCV_32_PCREL:
     return "R_RISCV_32_PCREL";
+  case R_RISCV_GOT_HI20:
+    return "R_RISCV_GOT_HI20";
+  case R_RISCV_CALL_PLT:
+    return "R_RISCV_CALL_PLT";
   case R_RISCV_ADD64:
     return "R_RISCV_ADD64";
   case R_RISCV_ADD32:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136985.471649.patch
Type: text/x-patch
Size: 508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221028/c376585d/attachment.bin>


More information about the llvm-commits mailing list