summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-05-21 05:15:01 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-05-21 05:15:01 +0000
commitec8c2db283e11fa798e459a1da8fd1da5014ed8e (patch)
tree931a11cb28dbdd1ddd2a5d30e9574e19fe353e8f /llvm/lib
parent8a13c4180e1a50fd4458ad522e2c271ce8ceb3d6 (diff)
downloadbcm5719-llvm-ec8c2db283e11fa798e459a1da8fd1da5014ed8e.tar.gz
bcm5719-llvm-ec8c2db283e11fa798e459a1da8fd1da5014ed8e.zip
MC: mark COFF .drectve section as REMOVE
The .drectve section should be marked as IMAGE_SCN_LNK_REMOVE. This matches what the MSVC toolchain does and accurately reflects that this section should not be emitted into the final binary. This section is merely information for the linker, comprising of additional linker directives. llvm-svn: 209273
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index e4bcfa257f6..e5377890da5 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -739,7 +739,7 @@ void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) {
DrectveSection =
Ctx->getCOFFSection(".drectve",
- COFF::IMAGE_SCN_LNK_INFO,
+ COFF::IMAGE_SCN_LNK_INFO | COFF::IMAGE_SCN_LNK_REMOVE,
SectionKind::getMetadata());
PDataSection =
OpenPOWER on IntegriCloud