[PATCH] D96722: [gold] Match lld WPD behavior for shared library symbols and add test

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 15 09:52:40 PST 2021


tejohnson created this revision.
tejohnson added a reviewer: MaskRay.
Herald added a subscriber: Prazek.
tejohnson requested review of this revision.
Herald added a project: LLVM.

lld already marks shared library defs as ExportDynamic, which prevents
potentially unsafe devirtualization of symbols defined in shared
libraries. Match that behavior in the gold plugin, and add the same
test.

Depends on D96721 <https://reviews.llvm.org/D96721>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96722

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96722.323785.patch
Type: text/x-patch
Size: 7036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210215/b8af5b96/attachment.bin>


More information about the llvm-commits mailing list