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 | 734bca04ff7e37802736f433ea077080dfbf90e6 (patch) | |
| tree | a7450b950e8a2048f4ce5c7f911486daaa6c2fe1 /llvm/lib | |
| parent | 820e041a3c45430f75fb8c22083b58d5c6bc8153 (diff) | |
| download | bcm5719-llvm-734bca04ff7e37802736f433ea077080dfbf90e6.tar.gz bcm5719-llvm-734bca04ff7e37802736f433ea077080dfbf90e6.zip | |
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.
llvm-svn: 207851
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/MC/WinCOFFObjectWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp index 7ae83134f3c..58f5eccf4d2 100644 --- a/llvm/lib/MC/WinCOFFObjectWriter.cpp +++ b/llvm/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); |

