diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -1649,6 +1649,8 @@ return t.isOSIAMCU() ? EM_IAMCU : EM_386; case Triple::x86_64: return EM_X86_64; + case Triple::hexagon: + return EM_HEXAGON; default: error(path + ": could not infer e_machine from bitcode target triple " + t.str());