[clang] [llvm] [X86] Set .llvmbc and .llvmcmd to exclude sections (PR #151910)
Haohai Wen via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 5 05:51:29 PDT 2025
HaohaiWen wrote:
> I think not using SHF_EXCLUDE is an intention design. There are some discussions on https://discourse.llvm.org/t/end-to-end-fembed-bitcode-llvmbc-and-llvmcmd/56265
>
> The concatenated bitcode might allow analysis like https://github.com/travitch/whole-program-llvm (though it doesn't seem to use embed-bitcode).
Thanks for explanation.
Someone have already removed it from wasm linker.
I removed those sections from PE image due to limitation of PE size (< 2GB for executable and < 4GB for a valid PE32+ file): https://github.com/llvm/llvm-project/pull/150897.
https://github.com/llvm/llvm-project/pull/151910
More information about the llvm-commits
mailing list