Lines Matching defs:shdr

369 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata,
400 if (shdr == NULL)
425 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,
429 int nentries = shdr->sh_size / shdr->sh_entsize;
438 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx,
445 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,
449 int nentries = shdr->sh_size / shdr->sh_entsize;
458 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx,
465 section_match (Elf *elf, uint32_t scnndx, GElf_Shdr *shdr, size_t shstrndx)
477 elf_strptr (elf, shstrndx, shdr->sh_name)) == 0)
503 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
505 if (shdr == NULL)
508 if (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA)
510 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
515 shdr->sh_info),
529 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link);
552 if (shdr->sh_type == SHT_REL)
553 show_relocs_rel (ebl, shdr, data, symdata, xndxdata,
556 show_relocs_rela (ebl, shdr, data, symdata, xndxdata,
574 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
576 if (shdr == NULL)
579 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size > 0)
581 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
585 elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
711 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
713 if (shdr == NULL)
716 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size > 0
717 && (shdr->sh_flags & SHF_EXECINSTR) != 0)
719 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
727 elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
730 info.addr = shdr->sh_addr;