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

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 12:33:46 PDT 2024


================
@@ -0,0 +1,93 @@
+# Tests Xtensa relocations. We provide a .debug_info section with multiple
+# DW_AT_high_pc entries (that's one of the attributes for which relocations are
+# resolved by llvm-dwarfdump) and we add a relocation for each of them.
+#
+# RUN: yaml2obj %s | llvm-dwarfdump - | FileCheck %s
+
+# To add more tests you need to modify the Content of the .debug_abbrev and
+# .debug_info sections. To do that create a test.s which matches the assembly
+# code below, run the command that follows and copy over the "Content" value of
+# the respective sections:
----------------
dwblaikie wrote:

Perhaps the simplest thing to do would be to have only a .debug_addr section with some relocatable addresses in it?

Could the assembly actually include the symbol references that would generate the relocations (can llvm-mc generate these relocations?) so they don't have to be hand-crafted in the IR?

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


More information about the llvm-commits mailing list