From 45184e01d80d0e01bc6d03a86e5aa4e706095e47 Mon Sep 17 00:00:00 2001 From: grischka Date: Mon, 11 Jul 2011 18:47:16 +0200 Subject: win32: add -Wl,--stack=xxx switch For example: $ tcc -Wl,--stack=4194309 which means 4 MB. Default is 1 MB. --- tccpe.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tccpe.c') diff --git a/tccpe.c b/tccpe.c index de2575a..ed57c63 100644 --- a/tccpe.c +++ b/tccpe.c @@ -686,6 +686,8 @@ static int pe_write(struct pe_info *pe) pe_header.filehdr.NumberOfSections = pe->sec_count; pe_header.opthdr.SizeOfHeaders = pe->sizeofheaders; pe_header.opthdr.ImageBase = pe->imagebase; + if (pe->s1->pe_stack_size) + pe_header.opthdr.SizeOfStackReserve = pe->s1->pe_stack_size; if (PE_DLL == pe->type) pe_header.filehdr.Characteristics = CHARACTERISTICS_DLL; else if (PE_GUI != pe->type) -- cgit v1.3.1