diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-02 17:45:24 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-02 17:45:24 +0000 |
commit | 735f9edde15046cf67037449fb7c41c048c923b7 (patch) | |
tree | 5913a578eb701fe7ff95fa9c4e417a0861a6e8ca /lib/MC | |
parent | b20252764dd2d68e4334dcf127b3b683226dc72b (diff) | |
download | llvm-735f9edde15046cf67037449fb7c41c048c923b7.tar.gz llvm-735f9edde15046cf67037449fb7c41c048c923b7.tar.bz2 llvm-735f9edde15046cf67037449fb7c41c048c923b7.tar.xz |
MC: place .file records into the correct section
.file records are supposed to have a section identifier of 65534
(IMAGE_SCN_DEBUG) rather than 0. This is spelt out clearly within the PE/COFF
specification. Fix this minor oversight with the implementation for support for
.file records.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207851 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/WinCOFFObjectWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp index 7ae83134f3..58f5eccf4d 100644 --- a/lib/MC/WinCOFFObjectWriter.cpp +++ b/lib/MC/WinCOFFObjectWriter.cpp @@ -649,6 +649,7 @@ void WinCOFFObjectWriter::ExecutePostLayoutBinding(MCAssembler &Asm, unsigned Count = (FI->size() + COFF::SymbolSize - 1) / COFF::SymbolSize; COFFSymbol *file = createSymbol(".file"); + file->Data.SectionNumber = COFF::IMAGE_SYM_DEBUG; file->Data.StorageClass = COFF::IMAGE_SYM_CLASS_FILE; file->Aux.resize(Count); |