[PATCH] D152973: [gold] Add preliminary FatLTO support to the Gold plugin

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 05:40:03 PDT 2023


peter.smith added a comment.

The documentation in https://llvm.org/docs/BitCodeFormat.html#native-object-file-wrapper-format says:

  Bitcode files for LLVM IR may also be wrapped in a native object file (i.e. ELF, COFF, Mach-O). The bitcode must be stored in a section of the object file named __LLVM,__bitcode for MachO and .llvmbc for the other object formats. This wrapper format is useful for accommodating LTO in compilation pipelines where intermediate objects must be native object files which contain metadata in other sections.
  
  Not all tools support this format. For example, lld and the gold plugin will ignore these sections when linking object files.

We noticed this as this change has broken our downstream LTO bitcode wrapper as it was using .llvmbc as a section name. I'm sure we can adapt, but would be good to clarify this section of the reference manual.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152973/new/

https://reviews.llvm.org/D152973



More information about the llvm-commits mailing list