2015-05-31 12:21:30 +08:00
|
|
|
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
2015-05-30 00:21:11 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s
|
|
|
|
|
|
|
|
DEFAULT: SizeOfStackReserve: 1048576
|
|
|
|
DEFAULT: SizeOfStackCommit: 4096
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj /stack:0x3000
|
2015-05-30 00:21:11 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
2015-06-18 03:19:25 +08:00
|
|
|
# RUN: echo "STACKSIZE 12288" > %t.def
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /def:%t.def %t.obj
|
2015-06-18 03:19:25 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
2015-05-30 00:21:11 +08:00
|
|
|
|
|
|
|
CHECK1: SizeOfStackReserve: 12288
|
|
|
|
CHECK1: SizeOfStackCommit: 4096
|
|
|
|
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj /stack:0x5000,0x3000
|
2015-05-30 00:21:11 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
2015-06-18 03:19:25 +08:00
|
|
|
# RUN: echo "STACKSIZE 20480,12288" > %t.def
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /def:%t.def %t.obj
|
2015-06-18 03:19:25 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
2015-05-30 00:21:11 +08:00
|
|
|
|
|
|
|
CHECK2: SizeOfStackReserve: 20480
|
|
|
|
CHECK2: SizeOfStackCommit: 12288
|