[all-commits] [llvm/llvm-project] 50ac3b: [gold] Match lld WPD behavior for shared library s...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Wed Feb 17 15:29:25 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50ac3b1d780fd385d50589641bfc91b95cd2d12f
      https://github.com/llvm/llvm-project/commit/50ac3b1d780fd385d50589641bfc91b95cd2d12f
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    A llvm/test/tools/gold/X86/Inputs/devirt_vcall_vis_shared_def.ll
    A llvm/test/tools/gold/X86/devirt_vcall_vis_shared_def.ll
    M llvm/tools/gold/gold-plugin.cpp

  Log Message:
  -----------
  [gold] Match lld WPD behavior for shared library symbols and add test

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.

Differential Revision: https://reviews.llvm.org/D96722




More information about the All-commits mailing list