Home
last modified time | relevance | path

Searched refs:phdr (Results 1 – 7 of 7) sorted by relevance

/frameworks/libs/binary_translation/tiny_loader/
Dtiny_loader.cc96 const ElfPhdr* phdr = &phdr_table[i]; in phdr_table_get_load_size() local
98 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() local
421 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 …]
/frameworks/libs/binary_translation/guest_loader/riscv64/
Dguest_loader_arch.cc42 GuestAddr phdr, in InitKernelArgs() argument
53 AT_PHDR, phdr, in InitKernelArgs()
/frameworks/compile/mclinker/lib/LD/
DELFObjectWriter.cpp345 ElfXX_Phdr* phdr = reinterpret_cast<ElfXX_Phdr*>(region.begin()); in emitProgramHeader() local
352 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()
/frameworks/libs/binary_translation/guest_loader/
Dguest_loader.cc61 const auto& phdr = phdr_table[i]; in FindPtInterp() local
62 if (phdr.p_type == PT_INTERP) { in FindPtInterp()
63 return reinterpret_cast<const char*>(load_bias + phdr.p_vaddr); in FindPtInterp()
Dguest_loader_impl.h47 GuestAddr phdr,
/frameworks/compile/mclinker/lib/Script/
DScriptParser.yy197 %type <str_token> input phdr
342 } [>region] [AT>lma_region] [:phdr :phdr ...] [=fillexp]
462 phdrs : phdrs ':' phdr
467 phdr : string
/frameworks/compile/mclinker/lib/Target/
DGNULDBackend.cpp1990 ELFSegmentFactory::iterator phdr = in setupProgramHdrs() local
1993 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()