| ... | @@ -6410,7 +6410,13 @@ fn flushSpecialSymbol(coff: *Coff, pending: SpecialSymbol) !SpecialSymbol { | ... | @@ -6410,7 +6410,13 @@ fn flushSpecialSymbol(coff: *Coff, pending: SpecialSymbol) !SpecialSymbol { |
| 6410 | .{ "wWinMainCRTStartup", "wWinMainCRTStartup" }, | 6410 | .{ "wWinMainCRTStartup", "wWinMainCRTStartup" }, |
| 6411 | } | 6411 | } |
| 6412 | else | 6412 | else |
| 6413 | &.{.{ null, if (target.abi.isGnu()) "DllMainCRTStartup" else "_DllMainCRTStartup" }}; | 6413 | &.{.{ |
| | 6414 | null, |
| | 6415 | if (comp.config.link_libc and target.abi.isGnu()) |
| | 6416 | "DllMainCRTStartup" |
| | 6417 | else |
| | 6418 | "_DllMainCRTStartup", |
| | 6419 | }}; |
| 6414 | | 6420 | |
| 6415 | const entry_si = for (entries) |entry| { | 6421 | const entry_si = for (entries) |entry| { |
| 6416 | if (entry[0]) |required_name| | 6422 | if (entry[0]) |required_name| |