[llvm] [BOLT] Err when linking objects of different architectures (PR #66770)

Vladislav Khmelevsky via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 05:52:33 PDT 2023


================
@@ -179,6 +179,13 @@ void JITLinkLinker::loadObject(MemoryBufferRef Obj,
     exit(1);
   }
 
+  if ((*LG)->getTargetTriple().getArch() != BC.TheTriple->getArch()) {
+    errs() << "BOLT-ERROR: linking object withg arch "
----------------
yota9 wrote:

with

https://github.com/llvm/llvm-project/pull/66770


More information about the llvm-commits mailing list