MaskRay wrote: This is incorrect. Some use cases require the sections to be combined during linking and adding ELF SHF_EXCLUDE would break the usage. https://reviews.llvm.org/D86374
If you want these flags to be relocatable files only, specify `/DISCARD/` in a linker script to discard them or discard them post-linking with llvm-objcopy. https://github.com/llvm/llvm-project/pull/151910 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits