From: Peter Collingbourne Date: Wed, 13 Jun 2018 23:21:02 +0000 (+0000) Subject: docs: Add a missing LTO visibility reference. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccfb6ba23ab4ecfa58c1f0abf126b588b048580a;p=clang docs: Add a missing LTO visibility reference. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334671 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ControlFlowIntegrity.rst b/docs/ControlFlowIntegrity.rst index 5e837db731..6b397befdd 100644 --- a/docs/ControlFlowIntegrity.rst +++ b/docs/ControlFlowIntegrity.rst @@ -104,10 +104,11 @@ dynamic type; that is, the dynamic type of the called object must be a derived class of the static type of the object used to make the call. This CFI scheme can be enabled on its own using ``-fsanitize=cfi-vcall``. -For this scheme to work, all translation units containing the definition of -a virtual member function (whether inline or not), other than members of -:ref:`blacklisted ` types, must be compiled with ``-flto`` -or ``-flto=thin`` enabled and be statically linked into the program. +For this scheme to work, all translation units containing the definition +of a virtual member function (whether inline or not), other than members +of :ref:`blacklisted ` types or types with public :doc:`LTO +visibility `, must be compiled with ``-flto`` or ``-flto=thin`` +enabled and be statically linked into the program. Performance -----------