Initial support for mipsel architecture¬
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user