in freestanding environment, assume gnu binutils

for now. soon LLD will free us from depending on
system linkers.
This commit is contained in:
Andrew Kelley 2017-02-03 15:53:23 -05:00
parent 5a86c04996
commit d3f1889951

View File

@ -687,8 +687,11 @@ static void construct_linker_job_darwin(LinkJob *lj) {
static void construct_linker_job(LinkJob *lj) {
switch (lj->codegen->zig_target.os) {
case ZigLLVM_UnknownOS:
zig_unreachable();
case ZigLLVM_UnknownOS: // freestanding
// TODO we want to solve this problem with LLD, but for now let's
// assume gnu binutils
// http://lists.llvm.org/pipermail/llvm-dev/2017-February/109835.html
return construct_linker_job_linux(lj);
case ZigLLVM_Linux:
if (lj->codegen->zig_target.arch.arch == ZigLLVM_hexagon) {
zig_panic("TODO construct hexagon_TC linker job");