diff --git a/clang/docs/SourceBasedCodeCoverage.rst b/clang/docs/SourceBasedCodeCoverage.rst index c38a00386d6a..805c98794804 100644 --- a/clang/docs/SourceBasedCodeCoverage.rst +++ b/clang/docs/SourceBasedCodeCoverage.rst @@ -275,9 +275,9 @@ Drawbacks and limitations ========================= * Prior to version 2.26, the GNU binutils BFD linker is not able link programs - with coverage enabled when the ``--gc-sections`` is enabled. The suggested - workaround is to either upgrade to a newer version of BFD, or to use the Gold - linker. + compiled with ``-fcoverage-mapping`` in its ``--gc-sections`` mode. Possible + workarounds include disabling ``--gc-sections``, upgrading to a newer version + of BFD, or using the Gold linker. * Code coverage does not handle unpredictable changes in control flow or stack unwinding in the presence of exceptions precisely. Consider the following