1 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s
8 .type global, @gnu_indirect_function
11 .type local, @gnu_indirect_function
14 ## Check we don't create the relocations with a section symbol for both global
15 ## They may result in IRELATIVE relocs that the dynamic loader will use to
16 ## resolve addresses at startup time.
21 # CHECK: Relocations [
22 # CHECK-NEXT: Section {{.*}} .rela.text {
23 # CHECK-NEXT: 0x1 R_X86_64_PLT32 global 0xFFFFFFFFFFFFFFFC
25 # CHECK-NEXT: Section {{.*}} .rela.data {
26 # CHECK-NEXT: 0x0 R_X86_64_64 global 0x0
27 # CHECK-NEXT: 0x8 R_X86_64_64 local 0x0