Home | History | Annotate | Download | only in src

Lines Matching defs:shdr

361 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,
366 int nentries = shdr->sh_size / shdr->sh_entsize;
409 if (shdr == NULL)
434 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,
439 int nentries = shdr->sh_size / shdr->sh_entsize;
482 if (shdr == NULL)
511 section_match (Elf *elf, uint32_t scnndx, GElf_Shdr *shdr, size_t shstrndx)
523 elf_strptr (elf, shstrndx, shdr->sh_name)) == 0)
549 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
551 if (shdr == NULL)
554 if (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA)
556 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
561 shdr->sh_info),
575 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link);
598 if (shdr->sh_type == SHT_REL)
599 show_relocs_rel (ebl, shdr, data, symdata, xndxdata,
602 show_relocs_rela (ebl, shdr, data, symdata, xndxdata,
620 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
622 if (shdr == NULL)
625 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size > 0)
627 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
631 elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
736 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
738 if (shdr == NULL)
741 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size > 0
742 && (shdr->sh_flags & SHF_EXECINSTR) != 0)
744 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
752 elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
755 info.addr = shdr->sh_addr;