/external/llvm-project/lldb/source/Plugins/ObjectFile/PECOFF/ |
D | ObjectFilePECOFF.cpp | 349 dos_header_t &dos_header) { in ParseDOSHeader() argument 352 success = data.ValidOffsetForDataOfSize(0, sizeof(dos_header)); in ParseDOSHeader() 355 dos_header.e_magic = data.GetU16(&offset); // Magic number in ParseDOSHeader() 356 success = dos_header.e_magic == IMAGE_DOS_SIGNATURE; in ParseDOSHeader() 359 dos_header.e_cblp = data.GetU16(&offset); // Bytes on last page of file in ParseDOSHeader() 360 dos_header.e_cp = data.GetU16(&offset); // Pages in file in ParseDOSHeader() 361 dos_header.e_crlc = data.GetU16(&offset); // Relocations in ParseDOSHeader() 362 dos_header.e_cparhdr = in ParseDOSHeader() 364 dos_header.e_minalloc = in ParseDOSHeader() 366 dos_header.e_maxalloc = in ParseDOSHeader() [all …]
|
D | ObjectFilePECOFF.h | 150 typedef struct dos_header { // DOS .EXE header struct 266 dos_header_t &dos_header);
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_win.cc | 420 IMAGE_DOS_HEADER dos_header; in GetPreferredBase() local 422 if (!ReadFromFile(fd, &dos_header, sizeof(dos_header), &bytes_read) || in GetPreferredBase() 423 bytes_read != sizeof(dos_header)) in GetPreferredBase() 427 if (dos_header.e_magic != IMAGE_DOS_SIGNATURE) in GetPreferredBase() 436 if (::SetFilePointer(fd, dos_header.e_lfanew, nullptr, FILE_BEGIN) == in GetPreferredBase()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_win.cpp | 574 IMAGE_DOS_HEADER dos_header; in GetPreferredBase() local 576 if (!ReadFromFile(fd, &dos_header, sizeof(dos_header), &bytes_read) || in GetPreferredBase() 577 bytes_read != sizeof(dos_header)) in GetPreferredBase() 581 if (dos_header.e_magic != IMAGE_DOS_SIGNATURE) in GetPreferredBase() 590 if (::SetFilePointer(fd, dos_header.e_lfanew, nullptr, FILE_BEGIN) == in GetPreferredBase()
|
/external/llvm-project/llvm/tools/llvm-objcopy/COFF/ |
D | Object.h | 98 object::dos_header DosHeader;
|
D | Reader.cpp | 27 const dos_header *DH = COFFObj.getDOSHeader(); in readExecutableHeaders()
|
/external/llvm/include/llvm/Object/ |
D | COFF.h | 40 struct dos_header { struct 796 const dos_header *getDOSHeader() const { in getDOSHeader() 799 return reinterpret_cast<const dos_header *>(base()); in getDOSHeader()
|
/external/llvm-project/lld/COFF/ |
D | Writer.cpp | 78 static const int dosStubSize = sizeof(dos_header) + sizeof(dosProgram); 1328 auto *dos = reinterpret_cast<dos_header *>(buf); in writeHeader() 1329 buf += sizeof(dos_header); in writeHeader() 1334 dos->HeaderSizeInParagraphs = sizeof(dos_header) / 16; in writeHeader() 1336 dos->AddressOfRelocationTable = sizeof(dos_header); in writeHeader()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
D | COFF.h | 53 struct dos_header { struct 970 const dos_header *getDOSHeader() const { in getDOSHeader() 973 return reinterpret_cast<const dos_header *>(base()); in getDOSHeader()
|
/external/llvm-project/llvm/include/llvm/Object/ |
D | COFF.h | 53 struct dos_header { struct 1000 const dos_header *getDOSHeader() const { in getDOSHeader() 1003 return reinterpret_cast<const dos_header *>(base()); in getDOSHeader()
|
/external/llvm/tools/llvm-readobj/ |
D | COFFDumper.cpp | 89 void printDOSHeader(const dos_header *DH); 584 if (const dos_header *DH = Obj->getDOSHeader()) in printFileHeaders() 588 void COFFDumper::printDOSHeader(const dos_header *DH) { in printDOSHeader()
|
/external/llvm/tools/yaml2obj/ |
D | yaml2coff.cpp | 355 object::dos_header DH; in writeCOFF()
|
/external/llvm/lib/Object/ |
D | COFFObjectFile.cpp | 649 if (checkSize(Data, EC, sizeof(dos_header) + sizeof(COFF::PEMagic))) { in COFFObjectFile() 652 const auto *DH = reinterpret_cast<const dos_header *>(base()); in COFFObjectFile()
|
/external/llvm-project/llvm/tools/llvm-readobj/ |
D | COFFDumper.cpp | 117 void printDOSHeader(const dos_header *DH); 642 if (const dos_header *DH = Obj->getDOSHeader()) in printFileHeaders() 646 void COFFDumper::printDOSHeader(const dos_header *DH) { in printDOSHeader()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
D | COFFEmitter.cpp | 408 object::dos_header DH; in writeCOFF()
|
/external/llvm-project/llvm/lib/ObjectYAML/ |
D | COFFEmitter.cpp | 408 object::dos_header DH; in writeCOFF()
|
/external/llvm-project/llvm/lib/Object/ |
D | COFFObjectFile.cpp | 734 if (checkSize(Data, EC, sizeof(dos_header) + sizeof(COFF::PEMagic))) { in initialize() 737 const auto *DH = reinterpret_cast<const dos_header *>(base()); in initialize()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/ |
D | COFFObjectFile.cpp | 685 if (checkSize(Data, EC, sizeof(dos_header) + sizeof(COFF::PEMagic))) { in COFFObjectFile() 688 const auto *DH = reinterpret_cast<const dos_header *>(base()); in COFFObjectFile()
|