[lld] [ELF] Add --compress-nonalloc-section (PR #84855)
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 20:17:56 PDT 2024
igorkudrin 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.
And still, if the name template in the `--compress-nonalloc-sections` matches debug sections, you cannot use just `--compress-debug-sections=none` to switch compressing debug sections off. Yes, there are possible workarounds to do that, but the most straightforward variant doesn't work.
https://github.com/llvm/llvm-project/pull/84855
More information about the llvm-commits
mailing list