Lines Matching defs:sh
271 GElf_Shdr sh;
285 if (gelf_getshdr(s, &sh) != &sh)
289 if (sh.sh_type != SHT_REL && sh.sh_type != SHT_RELA)
296 if ((name = elf_strptr(ecp->ein, indx, sh.sh_name)) == NULL)
300 is_remove_reloc_sec(ecp, sh.sh_info))
304 if (sh.sh_link != elf_ndxscn(ecp->symtab->is))
309 while (n < sh.sh_size && (d = elf_getdata(s, d)) != NULL) {
310 len = d->d_size / sh.sh_entsize;
312 if (sh.sh_type == SHT_REL) {
347 GElf_Shdr sh;
361 if (gelf_getshdr(s, &sh) != &sh)
365 if (sh.sh_type != SHT_GROUP)
368 if ((name = elf_strptr(ecp->ein, indx, sh.sh_name)) == NULL)
374 if (sh.sh_info > 0 && sh.sh_info < sc)
375 BIT_SET(ecp->v_grp, sh.sh_info);
376 else if (sh.sh_info != 0)
752 struct sthash *sh, *shtmp;
774 LIST_FOREACH_SAFE(sh, &st_buf->l.hash[i], sh_next,
776 LIST_REMOVE(sh, sh_next);
777 free(sh);
779 LIST_FOREACH_SAFE(sh, &st_buf->g.hash[i], sh_next,
781 LIST_REMOVE(sh, sh_next);
782 free(sh);
811 GElf_Shdr sh;
825 if (gelf_getshdr(ecp->symtab->os, &sh) == NULL)
828 sh.sh_link = elf_ndxscn(ecp->strtab->os);
829 if (!gelf_update_shdr(ecp->symtab->os, &sh))
879 struct sthash *sh;
938 if ((sh = malloc(sizeof(*sh))) == NULL) \
940 sh->sh_off = st_buf->B.sz; \
942 LIST_INSERT_HEAD(&st_buf->B.hash[hash], sh, \
1194 struct sthash *sh;
1198 LIST_FOREACH(sh, &buckets[hash], sh_next)
1199 if (strcmp(buf + sh->sh_off, s) == 0)
1200 return sh->sh_off;