[llvm] [ObjCopy] Reject compress-debug-sections for non-ELF (PR #191314)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 00:50:33 PDT 2026


================
@@ -73,8 +76,10 @@ Expected<const WasmConfig &> ConfigManager::getWasmConfig() const {
       !Common.SymbolsToWeaken.empty() || !Common.SymbolsToKeepGlobal.empty() ||
       !Common.SectionsToRename.empty() || !Common.SetSectionAlignment.empty() ||
       !Common.SetSectionFlags.empty() || !Common.SetSectionType.empty() ||
-      !Common.SymbolsToRename.empty() || Common.GapFill != 0 ||
-      Common.PadTo != 0 || Common.ChangeSectionLMAValAll != 0 ||
+      !Common.SymbolsToRename.empty() ||
+      Common.CompressionType != DebugCompressionType::None ||
----------------
jh7370 wrote:

Sorry I wasn't clear: it looks like the decompress version of the option is also not listed and it makes sense to add it here too at the same time.

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


More information about the llvm-commits mailing list