Lines Matching refs:sechdrs
298 Elf32_Shdr *sechdrs; in find_section32() local
303 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section32()
304 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section32()
308 if (strcmp(secnames+sechdrs[i].sh_name, secname) == 0) { in find_section32()
310 *size = sechdrs[i].sh_size; in find_section32()
311 return (void *)ehdr + sechdrs[i].sh_offset; in find_section32()
389 Elf64_Shdr *sechdrs; in find_section64() local
394 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section64()
395 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section64()
399 if (strcmp(secnames+sechdrs[i].sh_name, secname) == 0) { in find_section64()
401 *size = sechdrs[i].sh_size; in find_section64()
402 return (void *)ehdr + sechdrs[i].sh_offset; in find_section64()