[llvm] r261228 - Stop creating covmap as note section on ELF

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 09:20:22 PST 2016


Author: davidxl
Date: Thu Feb 18 11:20:22 2016
New Revision: 261228

URL: http://llvm.org/viewvc/llvm-project?rev=261228&view=rev
Log:
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

Modified:
    llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Modified: llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp?rev=261228&r1=261227&r2=261228&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp Thu Feb 18 11:20:22 2016
@@ -155,9 +155,6 @@ getELFKindForNamedSection(StringRef Name
 
 static unsigned getELFSectionType(StringRef Name, SectionKind K) {
 
-  if (Name == getInstrProfCoverageSectionName(false))
-    return ELF::SHT_NOTE;
-
   if (Name == ".init_array")
     return ELF::SHT_INIT_ARRAY;
 




More information about the llvm-commits mailing list