[PATCH] D116995: [gold] Ignore bitcode from sections inside object files

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 28 20:50:56 PDT 2022


-fembed-bitcode was originally added by Apple to enable them to recompile
3rd-party-developers' software with a newer compiler, or for new CPU
targets, without the source code. It uses the normal non-LTO optimization
pipeline, and emits bitcode corresponding to the binary object also
emitted.

For LTO bitcode generation, we use a different pass manager configuration.

That said, various other people seem to have had various other ideas about
how things should work over time. So, I couldn't say conclusively that
nobody will complain if we have gold not try to parse these sections...but
it seems potentially reasonable to me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220428/18e74858/attachment.html>


More information about the llvm-commits mailing list