| @@ -1551,15 +1551,10 @@ PUB_FUNC const char * tcc_set_linker(TCCState *s, char *option, int multi) · 1550 unmodified lines |
| 1551 | 1551 | end = NULL; |
| 1552 | 1552 | if (link_option(option, "Bsymbolic", &p)) { |
| 1553 | 1553 | s->symbolic = TRUE; |
| 1554 | | −#ifdef TCC_TARGET_PE |
| 1555 | | − } else if (link_option(option, "file-alignment=", &p)) { |
| 1556 | | − s->pe_file_align = strtoul(p, &end, 16); |
| 1557 | | −#endif |
| 1558 | 1554 | } else if (link_option(option, "fini=", &p)) { |
| 1559 | 1555 | s->fini_symbol = p; |
| 1560 | 1556 | if (s->warn_unsupported) |
| 1561 | 1557 | warning("ignoring -fini %s", p); |
| 1562 | | − |
| 1563 | 1558 | } else if (link_option(option, "image-base=", &p)) { |
| 1564 | 1559 | s->text_addr = strtoul(p, &end, 16); |
| 1565 | 1560 | s->has_text_addr = 1; |
| @@ -1567,7 +1562,6 @@ PUB_FUNC const char * tcc_set_linker(TCCState *s, char *option, int multi) · 1 unmodified line |
| 1567 | 1562 | s->init_symbol = p; |
| 1568 | 1563 | if (s->warn_unsupported) |
| 1569 | 1564 | warning("ignoring -init %s", p); |
| 1570 | | − |
| 1571 | 1565 | } else if (link_option(option, "oformat=", &p)) { |
| 1572 | 1566 | #if defined(TCC_TARGET_PE) |
| 1573 | 1567 | if (strstart(p, "pe-", NULL)) { |
| @@ -1599,6 +1593,10 @@ PUB_FUNC const char * tcc_set_linker(TCCState *s, char *option, int multi) · 25 unmodified lines |
| 1599 | 1593 | s->soname = p; |
| 1600 | 1594 | multi = 0; |
| 1601 | 1595 | #ifdef TCC_TARGET_PE |
| 1596 | + } else if (link_option(option, "file-alignment=", &p)) { |
| 1597 | + s->pe_file_align = strtoul(p, &end, 16); |
| 1598 | + } else if (link_option(option, "stack=", &p)) { |
| 1599 | + s->pe_stack_size = strtoul(p, &end, 10); |
| 1602 | 1600 | } else if (link_option(option, "subsystem=", &p)) { |
| 1603 | 1601 | #if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64) |
| 1604 | 1602 | if (!strcmp(p, "native")) { |