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