[llvm] [RelocationResolver][Xtensa] Implement R_XTENSA_32 (PR #96311)

YAMAMOTO Takashi via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 16:59:12 PST 2024


================
@@ -310,6 +310,28 @@ static uint64_t resolveX86(uint64_t Type, uint64_t Offset, uint64_t S,
   }
 }
 
+static bool supportsXtensa(uint64_t Type) {
+  switch (Type) {
+  case ELF::R_XTENSA_NONE:
+  case ELF::R_XTENSA_32:
+    return true;
+  default:
+    return false;
+  }
+}
+
+static uint64_t resolveXtensa(uint64_t Type, uint64_t Offset, uint64_t S,
+                              uint64_t LocData, int64_t Addend) {
+  switch (Type) {
+  case ELF::R_XTENSA_NONE:
----------------
yamt wrote:

@MaskRay ping

even if it's an indication of toolchain bugs, i feel it's nicer for llvm-dwarfdump to be able to dump it.


https://github.com/llvm/llvm-project/pull/96311


More information about the llvm-commits mailing list