[llvm] [llvm-gsymutil] Option --symtab-file to specify a separate binary (PR #79898)

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 29 22:24:15 PST 2024


================
@@ -400,6 +436,12 @@ static llvm::Error handleBuffer(StringRef Filename, MemoryBufferRef Buffer,
     if (auto Err = handleObjectFile(*Obj, OutFile))
       return Err;
   } else if (auto *Fat = dyn_cast<MachOUniversalBinary>(BinOrErr->get())) {
+    // Symbol table file is not accepted with universal binary
+    std::string SymtabFile = SymbolTableFilename;
+    if (!SymtabFile.empty())
+      return createStringError(std::errc::invalid_argument,
+                               "--symtab-file is not accepted for "
+                               "universal binary conversion");
----------------
clayborg wrote:

Make a test for this

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


More information about the llvm-commits mailing list