Searched refs:phdr (Results 1 – 7 of 7) sorted by relevance
96 const ElfPhdr* phdr = &phdr_table[i]; in phdr_table_get_load_size() local98 if (phdr->p_type != PT_LOAD) { in phdr_table_get_load_size()103 if (phdr->p_vaddr < min_vaddr) { in phdr_table_get_load_size()104 min_vaddr = phdr->p_vaddr; in phdr_table_get_load_size()107 if (phdr->p_vaddr + phdr->p_memsz > max_vaddr) { in phdr_table_get_load_size()108 max_vaddr = phdr->p_vaddr + phdr->p_memsz; in phdr_table_get_load_size()419 const ElfPhdr* phdr = &phdr_table[i]; in LoadSegments() local421 if (phdr->p_type != PT_LOAD) { in LoadSegments()426 ElfAddr seg_start = phdr->p_vaddr + load_bias; in LoadSegments()427 ElfAddr seg_end = seg_start + phdr->p_memsz; in LoadSegments()[all …]
42 GuestAddr phdr, in InitKernelArgs() argument53 AT_PHDR, phdr, in InitKernelArgs()
345 ElfXX_Phdr* phdr = reinterpret_cast<ElfXX_Phdr*>(region.begin()); in emitProgramHeader() local352 phdr[index].p_type = (*seg)->type(); in emitProgramHeader()353 phdr[index].p_flags = (*seg)->flag(); in emitProgramHeader()354 phdr[index].p_offset = (*seg)->offset(); in emitProgramHeader()355 phdr[index].p_vaddr = (*seg)->vaddr(); in emitProgramHeader()356 phdr[index].p_paddr = (*seg)->paddr(); in emitProgramHeader()357 phdr[index].p_filesz = (*seg)->filesz(); in emitProgramHeader()358 phdr[index].p_memsz = (*seg)->memsz(); in emitProgramHeader()359 phdr[index].p_align = (*seg)->align(); in emitProgramHeader()
61 const auto& phdr = phdr_table[i]; in FindPtInterp() local62 if (phdr.p_type == PT_INTERP) { in FindPtInterp()63 return reinterpret_cast<const char*>(load_bias + phdr.p_vaddr); in FindPtInterp()
47 GuestAddr phdr,
197 %type <str_token> input phdr342 } [>region] [AT>lma_region] [:phdr :phdr ...] [=fillexp]462 phdrs : phdrs ':' phdr467 phdr : string
1990 ELFSegmentFactory::iterator phdr = in setupProgramHdrs() local1993 if (phdr != elfSegmentTable().end()) { in setupProgramHdrs()2005 (*phdr)->setOffset(offset); in setupProgramHdrs()2006 (*phdr)->setVaddr((*null_seg)->vaddr() + offset); in setupProgramHdrs()2007 (*phdr)->setPaddr((*phdr)->vaddr()); in setupProgramHdrs()2008 (*phdr)->setFilesz(elfSegmentTable().size() * phdr_size); in setupProgramHdrs()2009 (*phdr)->setMemsz(elfSegmentTable().size() * phdr_size); in setupProgramHdrs()2010 (*phdr)->setAlign(config().targets().bitclass() / 8); in setupProgramHdrs()2012 elfSegmentTable().erase(phdr); in setupProgramHdrs()