Lines Matching refs:Phdr
40 Elf_Phdr &Phdr = *reinterpret_cast<Elf_Phdr *>(B); in writePhdr() local
41 Phdr.p_type = Seg.Type; in writePhdr()
42 Phdr.p_flags = Seg.Flags; in writePhdr()
43 Phdr.p_offset = Seg.Offset; in writePhdr()
44 Phdr.p_vaddr = Seg.VAddr; in writePhdr()
45 Phdr.p_paddr = Seg.PAddr; in writePhdr()
46 Phdr.p_filesz = Seg.FileSize; in writePhdr()
47 Phdr.p_memsz = Seg.MemSize; in writePhdr()
48 Phdr.p_align = Seg.Align; in writePhdr()
1390 for (const typename ELFFile<ELFT>::Elf_Phdr &Phdr : *Headers) { in readProgramHeaders()
1391 if (Phdr.p_offset + Phdr.p_filesz > HeadersFile.getBufSize()) in readProgramHeaders()
1394 "program header with offset 0x" + Twine::utohexstr(Phdr.p_offset) + in readProgramHeaders()
1395 " and file size 0x" + Twine::utohexstr(Phdr.p_filesz) + in readProgramHeaders()
1398 ArrayRef<uint8_t> Data{HeadersFile.base() + Phdr.p_offset, in readProgramHeaders()
1399 (size_t)Phdr.p_filesz}; in readProgramHeaders()
1401 Seg.Type = Phdr.p_type; in readProgramHeaders()
1402 Seg.Flags = Phdr.p_flags; in readProgramHeaders()
1403 Seg.OriginalOffset = Phdr.p_offset + EhdrOffset; in readProgramHeaders()
1404 Seg.Offset = Phdr.p_offset + EhdrOffset; in readProgramHeaders()
1405 Seg.VAddr = Phdr.p_vaddr; in readProgramHeaders()
1406 Seg.PAddr = Phdr.p_paddr; in readProgramHeaders()
1407 Seg.FileSize = Phdr.p_filesz; in readProgramHeaders()
1408 Seg.MemSize = Phdr.p_memsz; in readProgramHeaders()
1409 Seg.Align = Phdr.p_align; in readProgramHeaders()