1 ## For a target defined in the same section, create a relocation if the
2 ## symbol is not local, otherwise resolve the fixup statically.
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
4 # RUN: llvm-readobj -r %t | FileCheck --check-prefix=RELOC %s
5 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
8 # RELOC-NEXT: 0x5 R_X86_64_PLT32 global 0xFFFFFFFFFFFFFFFC
9 # RELOC-NEXT: 0xA R_X86_64_PLT32 weak 0xFFFFFFFFFFFFFFFC
10 # RELOC-NEXT: 0x19 R_X86_64_PLT32 global 0xFFFFFFFFFFFFFFFC
11 # RELOC-NEXT: 0x1E R_X86_64_PLT32 weak 0xFFFFFFFFFFFFFFFC
12 # RELOC-NEXT: 0x23 R_X86_64_PLT32 ifunc 0xFFFFFFFFFFFFFFFC
19 # CHECK-NEXT: e: callq
20 # CHECK-NEXT: 13: callq
21 # CHECK-NEXT: 18: callq
22 # CHECK-NEXT: 1d: callq
23 # CHECK-NEXT: 22: callq
24 # CHECK-NEXT: 27: retq
28 .type ifunc,@gnu_indirect_function