Lines Matching defs:sh
218 Shdr *sh = s->s_shdr;
221 if (sh->sh_type == SHT_NULL) {
222 *sh = _elf_snode_init.sb_shdr;
229 sh->sh_addralign = 1;
230 if ((sz = (Lword)_elf_entsz(elf, sh->sh_type, ver)) != 0)
232 sh->sh_entsize = (Half)sz;
243 if (j > sh->sh_addralign)
244 sh->sh_addralign = (Xword)j;
254 sh->sh_size = (Xword) sz;
268 if (sh->sh_type == SHT_NOBITS) {
277 j = sh->sh_addralign;
282 sh->sh_offset = (Off)hi;
317 Shdr *sh;
318 sh = (Shdr *)elf->ed_hdscn->s_shdr;
319 sh->sh_size = scncnt;
397 Shdr *sh = s->s_shdr;
412 if ((sh->sh_type != SHT_NOBITS) &&
416 if (sh->sh_size < sz) {
420 if ((sh->sh_type != SHT_NOBITS) &&
421 (hi < sh->sh_offset + sh->sh_size))
422 hi = sh->sh_offset + sh->sh_size;
434 Shdr *sh;
435 sh = (Shdr *)elf->ed_hdscn->s_shdr;
436 sh->sh_size = scncnt;
582 Shdr *sh = s->s_shdr;
583 char *start = image + sh->sh_offset;
588 execfill = (sh->sh_flags & SHF_EXECINSTR) ?
597 if ((sh->sh_type == SHT_NOBITS) ||
598 (sh->sh_type == SHT_NULL)) {
608 if (fill && (sh->sh_offset > hi)) {
609 sz = sh->sh_offset - hi;
662 hi = sh->sh_offset + sh->sh_size;
914 Shdr *sh = s->s_shdr;
916 if ((sh->sh_type == SHT_NOBITS) || (sh->sh_type == SHT_NULL))