diff options
| author | LemonBoy <thatlemon@gmail.com> | 2019-09-26 17:13:57 +0200 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2019-09-26 17:13:57 +0200 |
| commit | c8e4108c5b822af0cc99d35baea108c1738d55ff (patch) | |
| tree | 1c4cf0eeba4bc8f5e1f995e4a96a89e6c5c82ebc /src/link.cpp | |
| parent | a9be62f0858749ae479d05167392c7cf965da3ce (diff) | |
| download | zig-c8e4108c5b822af0cc99d35baea108c1738d55ff.tar.gz zig-c8e4108c5b822af0cc99d35baea108c1738d55ff.zip | |
Export _start as __start for MIPS targets
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/link.cpp b/src/link.cpp index 6690f48838..41fb2ca415 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -1813,14 +1813,9 @@ static void construct_linker_job_elf(LinkJob *lj) { lj->args.append("--allow-shlib-undefined"); } - // 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) { + if (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"); } } |
