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 | |
| parent | 8a13c4180e1a50fd4458ad522e2c271ce8ceb3d6 (diff) | |
| download | bcm5719-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.cpp | 2 |
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 = |

