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

Commit
11 days ago
[ObjCopy] Reject compress-debug-sections for non-ELF (#191314) `--compress-debug-sections` is currently an ELF-only option in the [docs](https://llvm.org/docs/CommandGuide/llvm-objcopy.html#cmdoption-llvm-objcopy-compress-debug-sections) but in `llvm-objcopy`, non-ELF backends were silently ignoring it, while `--decompress-debug-sections` already [reports](https://github.com/llvm/llvm-project/blob/89446086eaed6f07e2c122396570f2985cec62e5/llvm/lib/ObjCopy/ConfigManager.cpp#L32) unsupported-option error. This PR makes behavior consistent by treating `--compress-debug-sections` and `--compress-sections` as unsupported for non-ELF formats too.
Parents
Loading