Lines Matching refs:shdr
357 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata, in show_relocs_x() argument
388 if (shdr == NULL || destshdr == NULL) in show_relocs_x()
413 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, in show_relocs_rel() argument
418 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rel()
427 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rel()
434 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, in show_relocs_rela() argument
439 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rela()
448 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rela()
455 section_match (Elf *elf, uint32_t scnndx, GElf_Shdr *shdr, size_t shstrndx) in section_match() argument
461 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in section_match()
493 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in show_relocs() local
495 if (shdr == NULL) in show_relocs()
498 if (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in show_relocs()
500 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_relocs()
505 shdr->sh_info), in show_relocs()
521 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link); in show_relocs()
546 if (shdr->sh_type == SHT_REL) in show_relocs()
547 show_relocs_rel (ebl, shdr, data, symdata, xndxdata, in show_relocs()
550 show_relocs_rela (ebl, shdr, data, symdata, xndxdata, in show_relocs()
568 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in show_full_content() local
570 if (shdr == NULL) in show_full_content()
573 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size > 0) in show_full_content()
575 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_full_content()
579 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_full_content()
705 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); in show_disasm() local
707 if (shdr == NULL) in show_disasm()
710 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size > 0 in show_disasm()
711 && (shdr->sh_flags & SHF_EXECINSTR) != 0) in show_disasm()
713 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_disasm()
721 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_disasm()
724 info.addr = shdr->sh_addr; in show_disasm()