[lld] [LLD][ELF][ARM] Fix resolution of R_ARM_THM_JUMP8 and R_ARM_THM_JUMP11 (PR #126933)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 09:06:20 PST 2025


================
@@ -0,0 +1,32 @@
+# REQUIRES: arm
+
+# RUN: llvm-mc -triple thumbv6m-arm-eabi --filetype=obj %s -o %t.obj
+# RUN: ld.lld %t.obj -o %t.linked
+# RUN: llvm-objdump -d %t.linked | FileCheck %s --check-prefixes=CHECK,CHECK-LE
+
+# RUN: llvm-mc -triple thumbebv6m-arm-eabi --filetype=obj %s -o %t.obj
+# RUN: ld.lld %t.obj -o %t.linked
+# RUN: llvm-objdump -d %t.linked | FileCheck %s --check-prefixes=CHECK,CHECK-BE
+
+# CHECK-LE:                    file format elf32-littlearm
+# CHECK-BE:                    file format elf32-bigarm
+
+# CHECK:                       Disassembly of section .text:
+
+# CHECK-LABEL: [[#%x,TARGET:]] <target>:
+# CHECK-NEXT:      [[#TARGET]]: 4770    bx lr
----------------
MaskRay wrote:

Since the address 4770 is not important. Just omit it so that future address layout changes would not need to touch this file.

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


More information about the llvm-commits mailing list