Lines Matching refs:FileSize
98 S.Header.PointerToRawData = FileSize; in layoutSections()
99 FileSize += S.Header.SizeOfRawData; // For executables, this is already in layoutSections()
104 S.Header.PointerToRelocations = FileSize; in layoutSections()
105 FileSize += sizeof(coff_relocation); in layoutSections()
108 S.Header.PointerToRelocations = S.Relocs.size() ? FileSize : 0; in layoutSections()
111 FileSize += S.Relocs.size() * sizeof(coff_relocation); in layoutSections()
112 FileSize = alignTo(FileSize, FileAlignment); in layoutSections()
206 FileSize = SizeOfHeaders; in finalize()
233 size_t PointerToSymbolTable = FileSize; in finalize()
246 FileSize += SymTabSize + StrTabSize; in finalize()
247 FileSize = alignTo(FileSize, FileAlignment); in finalize()
381 Buf = WritableMemoryBuffer::getNewMemBuffer(FileSize); in write()
385 Twine::utohexstr(FileSize) + " bytes."); in write()