30 lines · plain
1# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r - | FileCheck %s2.global alias3.type alias, @function4alias:5 callq global6 7.global global8.type global, @gnu_indirect_function9.set global, alias10 11.type local, @gnu_indirect_function12.set local, alias13 14## Check we don't create the relocations with a section symbol for both global15## They may result in IRELATIVE relocs that the dynamic loader will use to16## resolve addresses at startup time.17.data18.quad global19.quad local20 21# CHECK: Relocations [22# CHECK-NEXT: Section {{.*}} .rela.text {23# CHECK-NEXT: 0x1 R_X86_64_PLT32 global 0xFFFFFFFFFFFFFFFC24# CHECK-NEXT: }25# CHECK-NEXT: Section {{.*}} .rela.data {26# CHECK-NEXT: 0x0 R_X86_64_64 global 0x027# CHECK-NEXT: 0x8 R_X86_64_64 local 0x028# CHECK-NEXT: }29# CHECK-NEXT: ]30