MC: mark COFF .drectve section as REMOVE
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 21 May 2014 05:15:01 +0000 (05:15 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 21 May 2014 05:15:01 +0000 (05:15 +0000)
commitec8c2db283e11fa798e459a1da8fd1da5014ed8e
tree931a11cb28dbdd1ddd2a5d30e9574e19fe353e8f
parent8a13c4180e1a50fd4458ad522e2c271ce8ceb3d6
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
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/test/MC/COFF/directive-section-characteristics.ll [new file with mode: 0644]