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

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 11 15:29:04 PST 2022


tstellar added a comment.

The documentation here: https://llvm.org/docs/BitCodeFormat.html#native-object-file-wrapper-format also says that the section is useful for LTO.

As you can see from the linked issue, there are some cases where adding the .llvmbc section causes ld.bfd to fail to link, when it was able to link successfully without the section.  I originally tried to fix the failures in the plugin, but after reading the comments on https://github.com/rust-lang/rust/issues/90326 it seemed like it might be better to just ignore these sections if they aren't intended to be use this way.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D116995



More information about the llvm-commits mailing list