Lines Matching refs:sechdrs
258 Elf32_Shdr *sechdrs; in find_section32() local
263 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section32()
264 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section32()
268 if (strcmp(secnames+sechdrs[i].sh_name, secname) == 0) { in find_section32()
270 *size = sechdrs[i].sh_size; in find_section32()
271 return (void *)ehdr + sechdrs[i].sh_offset; in find_section32()
363 Elf64_Shdr *sechdrs; in find_section64() local
368 sechdrs = (void *)ehdr + ehdr->e_shoff; in find_section64()
369 secnames = (void *)ehdr + sechdrs[ehdr->e_shstrndx].sh_offset; in find_section64()
373 if (strcmp(secnames+sechdrs[i].sh_name, secname) == 0) { in find_section64()
375 *size = sechdrs[i].sh_size; in find_section64()
376 return (void *)ehdr + sechdrs[i].sh_offset; in find_section64()