Lines Matching refs:shdr

344 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata,
375 if (shdr == NULL || destshdr == NULL)
400 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,
405 int nentries = shdr->sh_size / sh_entsize;
414 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx,
421 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,
426 int nentries = shdr->sh_size / sh_entsize;
435 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx,
442 section_match (Elf *elf, uint32_t scnndx, GElf_Shdr *shdr, size_t shstrndx)
448 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name);
480 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
482 if (shdr == NULL)
485 if (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA)
487 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
492 shdr->sh_info),
508 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link);
533 if (shdr->sh_type == SHT_REL)
534 show_relocs_rel (ebl, shdr, data, symdata, xndxdata,
537 show_relocs_rela (ebl, shdr, data, symdata, xndxdata,
555 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
557 if (shdr == NULL)
560 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size > 0)
562 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
566 elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
692 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
694 if (shdr == NULL)
697 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size > 0
698 && (shdr->sh_flags & SHF_EXECINSTR) != 0)
700 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
708 elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
711 info.addr = shdr->sh_addr;