diff options
| author | grischka <grischka> | 2011-07-11 18:47:16 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2011-07-11 18:47:16 +0200 |
| commit | 45184e01d80d0e01bc6d03a86e5aa4e706095e47 (patch) | |
| tree | 37e47493403815894ba6868099ac0c0ff40dd051 /tccpe.c | |
| parent | 7b573dc239a576da37f288c9ba39df5c0854b41d (diff) | |
| download | tinycc-45184e01d80d0e01bc6d03a86e5aa4e706095e47.tar.gz tinycc-45184e01d80d0e01bc6d03a86e5aa4e706095e47.tar.bz2 | |
win32: add -Wl,--stack=xxx switch
For example:
$ tcc -Wl,--stack=4194309
which means 4 MB. Default is 1 MB.
Diffstat (limited to 'tccpe.c')
| -rw-r--r-- | tccpe.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |
