diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-21 05:15:01 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-21 05:15:01 +0000 |
commit | ec8c2db283e11fa798e459a1da8fd1da5014ed8e (patch) | |
tree | 931a11cb28dbdd1ddd2a5d30e9574e19fe353e8f /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | 8a13c4180e1a50fd4458ad522e2c271ce8ceb3d6 (diff) | |
download | llvm-ec8c2db283e11fa798e459a1da8fd1da5014ed8e.zip llvm-ec8c2db283e11fa798e459a1da8fd1da5014ed8e.tar.gz llvm-ec8c2db283e11fa798e459a1da8fd1da5014ed8e.tar.bz2 |
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/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index e4bcfa2..e537789 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 = |