Home
last modified time | relevance | path

Searched refs:dos_header (Results 1 – 18 of 18) sorted by relevance

/external/llvm-project/lldb/source/Plugins/ObjectFile/PECOFF/
DObjectFilePECOFF.cpp349 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 …]
DObjectFilePECOFF.h150 typedef struct dos_header { // DOS .EXE header struct
266 dos_header_t &dos_header);
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_win.cc420 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/
Dsanitizer_win.cpp574 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/
DObject.h98 object::dos_header DosHeader;
DReader.cpp27 const dos_header *DH = COFFObj.getDOSHeader(); in readExecutableHeaders()
/external/llvm/include/llvm/Object/
DCOFF.h40 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/
DWriter.cpp78 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/
DCOFF.h53 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/
DCOFF.h53 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/
DCOFFDumper.cpp89 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/
Dyaml2coff.cpp355 object::dos_header DH; in writeCOFF()
/external/llvm/lib/Object/
DCOFFObjectFile.cpp649 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/
DCOFFDumper.cpp117 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/
DCOFFEmitter.cpp408 object::dos_header DH; in writeCOFF()
/external/llvm-project/llvm/lib/ObjectYAML/
DCOFFEmitter.cpp408 object::dos_header DH; in writeCOFF()
/external/llvm-project/llvm/lib/Object/
DCOFFObjectFile.cpp734 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/
DCOFFObjectFile.cpp685 if (checkSize(Data, EC, sizeof(dos_header) + sizeof(COFF::PEMagic))) { in COFFObjectFile()
688 const auto *DH = reinterpret_cast<const dos_header *>(base()); in COFFObjectFile()