Searched refs:phdrs (Results 1 – 2 of 2) sorted by relevance
237 Elf64_Phdr *phdrs, *phdr; in parse_elf() local240 Elf32_Phdr *phdrs, *phdr; in parse_elf()258 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()259 if (!phdrs) in parse_elf()262 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()265 phdr = &phdrs[i]; in parse_elf()278 free(phdrs); in parse_elf()
274 Elf64_Phdr *phdrs, *phdr; in parse_elf() local277 Elf32_Phdr *phdrs, *phdr; in parse_elf()293 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()294 if (!phdrs) in parse_elf()297 memcpy(phdrs, output + ehdr.e_phoff, sizeof(*phdrs) * ehdr.e_phnum); in parse_elf()300 phdr = &phdrs[i]; in parse_elf()320 free(phdrs); in parse_elf()