2 # RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.o
3 # RUN: ld.lld %t.o -o %t
4 # RUN: llvm-readobj -r %t | FileCheck --check-prefix=RELOC %s
5 # RUN: llvm-readelf -s %t | FileCheck --check-prefix=SYM %s
6 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
9 # RELOC-NEXT: 0x10020110 R_PPC_IRELATIVE - 0x100100E0
12 # SYM: 10010100 0 FUNC GLOBAL DEFAULT {{.*}} func
13 # HEX: 0x10020110 10010100
15 # CHECK: Disassembly of section .text:
17 # CHECK-NEXT: 100100e0: blr
19 # CHECK-NEXT: bl 0x100100f0
20 # CHECK-NEXT: lis 9, 4097
21 # CHECK-NEXT: addi 9, 9, 256
23 # CHECK-NEXT: <00000000.plt_call32.func>:
24 ## 0x10020110 = 65536*4098+272
25 # CHECK-NEXT: lis 11, 4098
26 # CHECK-NEXT: lwz 11, 272(11)
30 .type func, @gnu_indirect_function