Lines Matching refs:Phdr
42 Elf_Phdr &Phdr = *reinterpret_cast<Elf_Phdr *>(B); in writePhdr() local
43 Phdr.p_type = Seg.Type; in writePhdr()
44 Phdr.p_flags = Seg.Flags; in writePhdr()
45 Phdr.p_offset = Seg.Offset; in writePhdr()
46 Phdr.p_vaddr = Seg.VAddr; in writePhdr()
47 Phdr.p_paddr = Seg.PAddr; in writePhdr()
48 Phdr.p_filesz = Seg.FileSize; in writePhdr()
49 Phdr.p_memsz = Seg.MemSize; in writePhdr()
50 Phdr.p_align = Seg.Align; in writePhdr()
1458 for (const typename ELFFile<ELFT>::Elf_Phdr &Phdr : *Headers) { in readProgramHeaders()
1459 if (Phdr.p_offset + Phdr.p_filesz > HeadersFile.getBufSize()) in readProgramHeaders()
1462 "program header with offset 0x" + Twine::utohexstr(Phdr.p_offset) + in readProgramHeaders()
1463 " and file size 0x" + Twine::utohexstr(Phdr.p_filesz) + in readProgramHeaders()
1466 ArrayRef<uint8_t> Data{HeadersFile.base() + Phdr.p_offset, in readProgramHeaders()
1467 (size_t)Phdr.p_filesz}; in readProgramHeaders()
1469 Seg.Type = Phdr.p_type; in readProgramHeaders()
1470 Seg.Flags = Phdr.p_flags; in readProgramHeaders()
1471 Seg.OriginalOffset = Phdr.p_offset + EhdrOffset; in readProgramHeaders()
1472 Seg.Offset = Phdr.p_offset + EhdrOffset; in readProgramHeaders()
1473 Seg.VAddr = Phdr.p_vaddr; in readProgramHeaders()
1474 Seg.PAddr = Phdr.p_paddr; in readProgramHeaders()
1475 Seg.FileSize = Phdr.p_filesz; in readProgramHeaders()
1476 Seg.MemSize = Phdr.p_memsz; in readProgramHeaders()
1477 Seg.Align = Phdr.p_align; in readProgramHeaders()