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)
commit8235ed1808c65ca8ebcc811c166387c24ff63083
treeffc1a3df509c372e7ef40b7d3a044e0bc758e7ce
parent651f680b79947b345a5cd6ddb177483365e3b551
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209273 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCObjectFileInfo.cpp
test/MC/COFF/directive-section-characteristics.ll [new file with mode: 0644]