Searched refs:prg_hdr (Results 1 – 1 of 1) sorted by relevance
/trusty/kernel/lib/trusty/ |
D | trusty_app.c | 1221 ELF_PHDR* prg_hdr = (ELF_PHDR*)(trusty_app_image + elf_hdr->e_phoff); in elf_vaddr_mapped() local 1225 for (size_t i = 0; i < elf_hdr->e_phnum; i++, prg_hdr++) { in elf_vaddr_mapped() 1227 __builtin_add_overflow(prg_hdr->p_vaddr, prg_hdr->p_memsz, &end); in elf_vaddr_mapped() 1228 if (prg_hdr->p_type == PT_LOAD && in elf_vaddr_mapped() 1229 vaddr >= round_down(prg_hdr->p_vaddr, PAGE_SIZE) && in elf_vaddr_mapped() 1240 ELF_PHDR* prg_hdr; in alloc_address_map() local 1245 prg_hdr = (ELF_PHDR*)(trusty_app_image + elf_hdr->e_phoff); in alloc_address_map() 1247 if (!address_range_within_img(prg_hdr, sizeof(ELF_PHDR) * elf_hdr->e_phnum, in alloc_address_map() 1254 select_load_bias(prg_hdr, elf_hdr->e_phnum, trusty_app->aspace, in alloc_address_map() 1264 for (i = 0; i < elf_hdr->e_phnum; i++, prg_hdr++) { in alloc_address_map() [all …]
|