2 # RUN: yaml2obj %s -o %t.o
3 # RUN: ld.lld %t.o -o %t
4 # RUN: llvm-objdump --no-print-imm-hex -d %t | FileCheck %s
6 # CHECK: Disassembly of section .text:
8 # CHECK-NEXT: <_start>:
9 # CHECK-NEXT: e7ff b 0x200b6 <_start+0x2> @ imm = #-2
10 # CHECK-NEXT: d0fe beq 0x200b6 <_start+0x2> @ imm = #-4
12 # Test the R_ARM_THM_JUMP11 (102) and R_ARM_THM_JUMP8 (103) relocations to an
13 # undefined weak reference. It should resolve to the next instruction, which
14 # is an offset of -2 which when added to the Thumb PC-bias of 4 is +2. We can't
15 # use llvm-mc to construct the object as it relaxes b.n to b.w (R_ARM_JUMP24).
26 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
33 - Symbol: undefined_weak
34 Type: R_ARM_THM_JUMP11
35 - Symbol: undefined_weak