From: Xinliang David Li Date: Thu, 18 Feb 2016 17:20:22 +0000 (+0000) Subject: Stop creating covmap as note section on ELF X-Git-Tag: llvmorg-3.9.0-rc1~13828 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1153f194bde1fb1b75ed21effef8efb97bb15f59;p=platform%2Fupstream%2Fllvm.git 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 llvm-svn: 261228 --- diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index bcaad86..5dfdb7a 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/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;