[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc32-abs-pic.s
blob44a099d3efbc7453f02ca8470b38ce17c131c307
1 # REQUIRES: ppc
2 # RUN: llvm-mc -filetype=obj -triple=powerpc %s -o %t.o
3 # RUN: ld.lld -shared %t.o -o %t.so
4 # RUN: llvm-nm %t.so | FileCheck --check-prefix=NM %s
5 # RUN: llvm-readobj -r %t.so | FileCheck --check-prefix=RELOC %s
7 ## R_PPC_ADDR32 is an absolute relocation type.
8 ## In PIC mode, it creates a relative relocation if the symbol is non-preemptable.
10 # NM: 00030204 d b
12 # RELOC: .rela.dyn {
13 # RELOC-NEXT: 0x30204 R_PPC_RELATIVE - 0x30204
14 # RELOC-NEXT: 0x30200 R_PPC_ADDR32 a 0
15 # RELOC-NEXT: }
17 .globl a, b
18 .hidden b
20 .data
21 .long a
23 .long b