[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / ppc64-section-layout.s
blob490f69b82868c106143ad152324cf29886af186d
1 # REQUIRES: ppc
2 ## Test PPC64 specific section layout. See also section-layout.s.
4 # RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %t.o
5 # RUN: llvm-mc -filetype=obj -triple=powerpc64le %p/Inputs/shared.s -o %t1.o
6 # RUN: ld.lld -shared -soname=t1.so %t1.o -o %t1.so
7 # RUN: ld.lld %t.o %t1.so -o %t
8 # RUN: llvm-readelf -S %t | FileCheck %s
10 # CHECK: .text
11 # CHECK-NEXT: .tdata
12 # CHECK-NEXT: .tbss
13 # CHECK-NEXT: .dynamic
14 # CHECK-NEXT: .got
15 # CHECK-NEXT: .toc
16 ## The end of .relro_padding is aligned to a common-page-size boundary.
17 # CHECK-NEXT: .relro_padding NOBITS 0000000010020400 000400 000c00 00 WA 0 0 1
18 # CHECK-NEXT: .data
19 # CHECK-NEXT: .branch_lt
21 .globl _start
22 _start:
23 addis 3, 2, bar2@got@ha
24 ld 3, bar2@got@l(3)
25 addis 5, 2, .Lbar@toc@ha
26 ld 5, .Lbar@toc@l(5)
28 .section .toc,"aw",@progbits
29 .Lbar:
30 .tc bar[TC], bar
32 .section .tdata,"awT",@progbits; .space 1
33 .section .tbss,"awT",@nobits; .space 1
34 .section .data,"aw",@progbits; .space 1