forked from OSchip/llvm-project
26 lines
1006 B
Plaintext
26 lines
1006 B
Plaintext
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
|
|
|
# RUN: lld -flavor link2 /out:%t.exe %t.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s
|
|
|
|
DEFAULT: SizeOfStackReserve: 1048576
|
|
DEFAULT: SizeOfStackCommit: 4096
|
|
|
|
# RUN: lld -flavor link2 /out:%t.exe %t.obj /stack:0x3000
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
|
# RUN: echo "STACKSIZE 12288" > %t.def
|
|
# RUN: lld -flavor link2 /out:%t.exe /def:%t.def %t.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
|
|
|
CHECK1: SizeOfStackReserve: 12288
|
|
CHECK1: SizeOfStackCommit: 4096
|
|
|
|
# RUN: lld -flavor link2 /out:%t.exe %t.obj /stack:0x5000,0x3000
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
|
# RUN: echo "STACKSIZE 20480,12288" > %t.def
|
|
# RUN: lld -flavor link2 /out:%t.exe /def:%t.def %t.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
|
|
|
CHECK2: SizeOfStackReserve: 20480
|
|
CHECK2: SizeOfStackCommit: 12288
|