[PATCH] D22302: [ThinLTO/gold] Perform index-based weak/linkonce resolution

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 06:29:25 PDT 2016


tejohnson created this revision.
tejohnson added a reviewer: mehdi_amini.
tejohnson added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.

Invoke the weak/linkonce symbol resolution support (already used by
libLTO) that operates via the summary index.

This ensures prevailing linkonce are kept, by making them weak, and
marks preempted copies as available_externally when possible.

With this change, the older support for keeping the prevailing linkonce
(by changing their symbol resolution) is removed.

http://reviews.llvm.org/D22302

Files:
  test/tools/gold/X86/Inputs/thinlto_weak_resolution.ll
  test/tools/gold/X86/thinlto_weak_resolution.ll
  tools/gold/gold-plugin.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22302.63800.patch
Type: text/x-patch
Size: 7956 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160713/fbd4916a/attachment.bin>


More information about the llvm-commits mailing list