Index: ELF/Driver.cpp =================================================================== --- ELF/Driver.cpp +++ ELF/Driver.cpp @@ -318,7 +318,7 @@ link(Args); return; default: - error("-m or at least a .o file required"); + error("target emulation unknown: -m or at least one .o file required"); } } Index: test/ELF/no-obj.s =================================================================== --- test/ELF/no-obj.s +++ test/ELF/no-obj.s @@ -2,7 +2,7 @@ // RUN: llvm-ar rcs %t.a %t.o // RUN: not ld.lld -o %t2 -u _start %t.a 2>&1 | FileCheck %s -// CHECK: -m or at least a .o file required +// CHECK: target emulation unknown: -m or at least one .o file required .global _start _start: