Initial support for mipsel architecture¬

This commit is contained in:
LemonBoy
2019-09-21 23:00:36 +02:00
parent 2f20833097
commit 4ebcf64864
16 changed files with 770 additions and 46 deletions

View File

@@ -1813,10 +1813,14 @@ static void construct_linker_job_elf(LinkJob *lj) {
lj->args.append("--allow-shlib-undefined");
}
if (g->zig_target->os == OsZen) {
// MIPS entry point name is __start instead of _start, force the linker to
// use the latter
if (target_is_mips(g->zig_target) || g->zig_target->os == OsZen) {
lj->args.append("-e");
lj->args.append("_start");
}
if (g->zig_target->os == OsZen) {
lj->args.append("--image-base=0x10000000");
}
}