brintos

brintos / llvm-project-archived public Read only

0
0
Text · 969 B · 490f69b Raw
35 lines · plain
1# REQUIRES: ppc2## Test PPC64 specific section layout. See also section-layout.s.3 4# RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %t.o5# RUN: llvm-mc -filetype=obj -triple=powerpc64le %p/Inputs/shared.s -o %t1.o6# RUN: ld.lld -shared -soname=t1.so %t1.o -o %t1.so7# RUN: ld.lld %t.o %t1.so -o %t8# RUN: llvm-readelf -S %t | FileCheck %s9 10# CHECK:      .text11# CHECK-NEXT: .tdata12# CHECK-NEXT: .tbss13# CHECK-NEXT: .dynamic14# CHECK-NEXT: .got15# CHECK-NEXT: .toc16## 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 118# CHECK-NEXT: .data19# CHECK-NEXT: .branch_lt20 21.globl _start22_start:23  addis 3, 2, bar2@got@ha24  ld    3, bar2@got@l(3)25  addis 5, 2, .Lbar@toc@ha26  ld    5, .Lbar@toc@l(5)27 28.section .toc,"aw",@progbits29.Lbar:30  .tc bar[TC], bar31 32.section .tdata,"awT",@progbits; .space 133.section .tbss,"awT",@nobits; .space 134.section .data,"aw",@progbits; .space 135