[Clang] replace 'bitfield' with 'bit-field' for consistency (#117881)
[llvm-project.git] / lld / test / ELF / zstack-size.s
blob378a965793526c29e1304fa57295e6855cd8efd4
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: ld.lld -z stack-size=0x1000 %t -o %t1
4 # RUN: llvm-readobj -l %t1 | FileCheck %s -check-prefix=CHECK1
6 # RUN: ld.lld -z stack-size=0 %t -o %t2
7 # RUN: llvm-readobj -l %t2 | FileCheck %s -check-prefix=CHECK2
9 # RUN: ld.lld -z stack-size=0x2000 -z stack-size=0x1000 %t -o %t3
10 # RUN: llvm-readobj -l %t3 | FileCheck %s -check-prefix=CHECK1
12 .global _start
13 _start:
14 nop
16 # CHECK1: Type: PT_GNU_STACK (0x6474E551)
17 # CHECK1-NEXT: Offset: 0x0
18 # CHECK1-NEXT: VirtualAddress: 0x0
19 # CHECK1-NEXT: PhysicalAddress: 0x0
20 # CHECK1-NEXT: FileSize: 0
21 # CHECK1-NEXT: MemSize: 4096
22 # CHECK1-NEXT: Flags [ (0x6)
23 # CHECK1-NEXT: PF_R (0x4)
24 # CHECK1-NEXT: PF_W (0x2)
25 # CHECK1-NEXT: ]
27 # CHECK2: Type: PT_GNU_STACK (0x6474E551)
28 # CHECK2-NEXT: Offset: 0x0
29 # CHECK2-NEXT: VirtualAddress: 0x0
30 # CHECK2-NEXT: PhysicalAddress: 0x0
31 # CHECK2-NEXT: FileSize: 0
32 # CHECK2-NEXT: MemSize: 0
33 # CHECK2-NEXT: Flags [ (0x6)
34 # CHECK2-NEXT: PF_R (0x4)
35 # CHECK2-NEXT: PF_W (0x2)
36 # CHECK2-NEXT: ]