[PATCH] D130229: [ELF] Add --thinlto-index= and --remapping-file=

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 21 22:24:50 PDT 2022


wenlei added a comment.

I'm not sure how this solution works because symbol resolution before and after importing aren't guaranteed to produce same result even if input order is identical.

Say we have foo in a.o, which references bar in b.o (lazy object). Assuming a.o imports bar, before importing, b.o gets picked because of that foo->bar reference, but the reference will be gone after importing and we may not pick b.o during final linking. The ripple effect from dropping b.o can disturb other symbol's resolution, making final link and thin link diverge.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D130229



More information about the llvm-commits mailing list