From 20878dbe527cab55718a5d99d4aa5c447dace1ad Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Thu, 18 Feb 2016 17:20:22 +0000 Subject: [PATCH] Stop creating covmap as note section on ELF covmap needs to created as non allocatable, but not with SHT_NOTE. The latter was needed to workaround a problem of BFD linker with gc, which is no longer needed. (A more proper longer term fix requires changing FE driver to force referencing the section using linker script). Differential Revision: http://reviews.llvm.org/D17309 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261228 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index bcaad86a511..5dfdb7acef1 100644 --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -155,9 +155,6 @@ getELFKindForNamedSection(StringRef Name, SectionKind K) { static unsigned getELFSectionType(StringRef Name, SectionKind K) { - if (Name == getInstrProfCoverageSectionName(false)) - return ELF::SHT_NOTE; - if (Name == ".init_array") return ELF::SHT_INIT_ARRAY; -- 2.11.0