[llvm] c4dd260 - [JITLink][RISCV] Add names for GOT/PLT relocations

Jonas Hahnfeld via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 29 03:40:03 PDT 2022


Author: Jonas Hahnfeld
Date: 2022-10-29T12:04:16+02:00
New Revision: c4dd260f92698fabd761f2caa893b9e61bfc8178

URL: https://github.com/llvm/llvm-project/commit/c4dd260f92698fabd761f2caa893b9e61bfc8178
DIFF: https://github.com/llvm/llvm-project/commit/c4dd260f92698fabd761f2caa893b9e61bfc8178.diff

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

It is confusing to see "Unrecognized edge kind" in debugging output
for supported relocations; this was probably an oversight in commit
89f546f6ba which added the support.

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/JITLink/riscv.cpp b/llvm/lib/ExecutionEngine/JITLink/riscv.cpp
index 3848cc6b5f01a..eecac29b0b41c 100644
--- a/llvm/lib/ExecutionEngine/JITLink/riscv.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/riscv.cpp
@@ -42,6 +42,10 @@ const char *getEdgeKindName(Edge::Kind K) {
     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:


        


More information about the llvm-commits mailing list