1# RUN: ld64.lld -arch x86_64 -macosx_version_min 10.9 %s -o %t %p/Inputs/x86_64/libSystem.yaml 2# RUN: llvm-objdump --private-headers %t | FileCheck --check-prefix=CHECK-DEFAULT %s 3# RUN: ld64.lld -arch x86_64 -macosx_version_min 10.9 %s -o %t -stack_size 31415926000 %p/Inputs/x86_64/libSystem.yaml 4# RUN: llvm-objdump --private-headers %t | FileCheck --check-prefix=CHECK-EXPLICIT %s 5# RUN: not ld64.lld -arch x86_64 -stack_size 0x31415926530 %s >/dev/null 2> %t 6# RUN: FileCheck < %t %s --check-prefix=CHECK-ERROR-MISPAGED 7# RUN: not ld64.lld -arch x86_64 -stack_size hithere %s >/dev/null 2> %t 8# RUN: FileCheck < %t %s --check-prefix=CHECK-ERROR-NOTHEX 9 10--- !native 11defined-atoms: 12 - name: _main 13 scope: global 14 content: [] 15 16# CHECK-DEFAULT: cmd LC_MAIN 17# CHECK-DEFAULT: stacksize 0 18 19# CHECK-EXPLICIT: cmd LC_MAIN 20# CHECK-EXPLICIT: stacksize 3384796143616 21 22# CHECK-ERROR-MISPAGED: error: stack_size must be a multiple of page size (0x1000) 23 24# CHECK-ERROR-NOTHEX: error: stack_size expects a hex number 25