grimar accepted this revision. grimar added a comment. This is probably OK. LGTM with a nit. ================ Comment at: lld/ELF/ScriptParser.cpp:491 + else + setError("unknown target: " + Tok); +} ---------------- Can you add a test for that error? https://reviews.llvm.org/D48153