Lines Matching refs:shdr
248 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
250 if (shdr == NULL) in process_file()
258 switch (shdr->sh_type) in process_file()
266 size_t entries = (shdr->sh_entsize == 0 in process_file()
267 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file()
389 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in process_file() local
391 if (shdr == NULL) in process_file()
400 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in process_file()
403 symscn = elf_getscn (elf, shdr->sh_link); in process_file()
408 (size_t) shdr->sh_link, fname, elf_errmsg (-1)); in process_file()
414 if (shdr->sh_type == SHT_REL) in process_file()
417 size_t entries = (shdr->sh_entsize == 0 in process_file()
418 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file()
438 else if (shdr->sh_type == SHT_RELA) in process_file()
441 size_t entries = (shdr->sh_entsize == 0 in process_file()
442 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file()
527 GElf_Shdr *shdr = gelf_getshdr (symscn, &shdr_mem); in check_rel() local
528 if (shdr != NULL) in check_rel()
536 size_t entries = (shdr->sh_entsize == 0 in check_rel()
537 ? 0 : shdr->sh_size / shdr->sh_entsize); in check_rel()
562 const char *lowstr = elf_strptr (elf, shdr->sh_link, in check_rel()
587 lowstr, elf_strptr (elf, shdr->sh_link, in check_rel()
599 elf_strptr (elf, shdr->sh_link, sym->st_name)); in check_rel()