[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / systemz-pie.s
blobbb971a82fb8ced59c786f4d6103badee3a229fad
1 # REQUIRES: systemz
2 # RUN: llvm-mc -filetype=obj -triple=s390x-unknown-linux %s -o %t1.o
4 ## Check -pie.
5 # RUN: ld.lld -pie %t1.o -o %t
6 # RUN: llvm-readelf --file-headers --program-headers --dynamic %t | FileCheck %s
8 # CHECK: ELF Header:
9 # CHECK-NEXT: Magic: 7f 45 4c 46 02 02 01 00 00 00 00 00 00 00 00 00
10 # CHECK-NEXT: Class: ELF64
11 # CHECK-NEXT: Data: 2's complement, big endian
12 # CHECK-NEXT: Version: 1 (current)
13 # CHECK-NEXT: OS/ABI: UNIX - System V
14 # CHECK-NEXT: ABI Version: 0
15 # CHECK-NEXT: Type: DYN (Shared object file)
16 # CHECK-NEXT: Machine: IBM S/390
17 # CHECK-NEXT: Version: 0x1
19 # CHECK: Program Headers:
20 # CHECK-NEXT: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
21 # CHECK-NEXT: PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x000188 0x000188 R 0x8
22 # CHECK-NEXT: LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x00020d 0x00020d R 0x1000
23 # CHECK-NEXT: LOAD 0x000210 0x0000000000002210 0x0000000000002210 0x000090 0x000df0 RW 0x1000
24 # CHECK-NEXT: DYNAMIC 0x000210 0x0000000000002210 0x0000000000002210 0x000090 0x000090 RW 0x8
25 # CHECK-NEXT: GNU_RELRO 0x000210 0x0000000000002210 0x0000000000002210 0x000090 0x000df0 R 0x1
26 # CHECK-NEXT: GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x0
28 # CHECK: Dynamic section at offset 0x210 contains 9 entries:
29 # CHECK-NEXT: Tag Type Name/Value
30 # CHECK-NEXT: 0x000000006ffffffb (FLAGS_1) PIE
32 ## Check -nopie
33 # RUN: ld.lld -no-pie %t1.o -o %t2
34 # RUN: llvm-readelf --file-headers %t2 | FileCheck %s --check-prefix=NOPIE
35 # NOPIE-NOT: Type: DYN
37 .globl _start
38 _start: