[lld] [ELF] Add --compress-nonalloc-section (PR #84855)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 20:06:59 PDT 2024


MaskRay wrote:

> It seems a bit inconsistent to me that, say, `--compress-nonalloc-sections '*bug*=zstd'` can be overridden by `--compress-debug-sections=zlib`, but not by `--compress-debug-sections=none`.

`=none` can override a previous `=zlib` or `=zstd`.
`ld.lld -pie %t.o -o %t --compress-nonalloc-sections '*0=zlib' --compress-nonalloc-sections '*0=none'` in `lld/test/ELF/compress-nonalloc-sections.s` is such an example.

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


More information about the llvm-commits mailing list