fix entry symbol name on mips

This commit is contained in:
Andrew Kelley 2023-12-18 15:20:47 -07:00
parent 2d2a18831e
commit a3ff4d9b45

View File

@ -673,7 +673,10 @@ pub fn defaultEntrySymbolName(
return switch (target.ofmt) {
.coff => "wWinMainCRTStartup",
.macho => "_main",
.elf, .plan9 => "_start",
.elf, .plan9 => switch (target.cpu.arch) {
.mips, .mipsel, .mips64, .mips64el => "__start",
else => "_start",
},
.wasm => switch (wasi_exec_model) {
.reactor => "_initialize",
.command => "_start",