Embedded Bitcode in Object Files

Steven Wu via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 09:57:56 PST 2016


Hi all

I put up some patches for embedding bitcode inside the object file (-fembed-bitcode) option. As I described in the dev list before, the new option can create normal object file with bitcode embedded in a special section. You can easily recreate the same object file with the embedded bitcode in it.

I split the patch into several parts:
llvm patch:
http://reviews.llvm.org/D17388: Introduce the section for embedding bitcode in MachO file.

There are four clang patches:
http://reviews.llvm.org/D17390: Implementing the clang driver for the new option.
http://reviews.llvm.org/D17392: Teach clang how to embed bitcode into the object file.
http://reviews.llvm.org/D17393: Slightly tweak the bitcode emitted in embed bitcode stage 1.
http://reviews.llvm.org/D17394: Reduce the amount of option gets embedded in the bitcode by introducing a whitelist and a blacklist.

Let me know if anyone is interested in helping reviewing these changes.

Thanks

Steven





More information about the llvm-commits mailing list