Lines Matching defs:sh
53 GElf_Shdr sh;
72 if (gelf_getshdr(scn, &sh) == NULL) {
77 if ((sh.sh_flags & SHF_ALLOC) == 0 ||
78 sh.sh_type == SHT_NOBITS ||
79 sh.sh_size == 0)
81 if (baseoff == -1 || (off_t) sh.sh_offset < baseoff) {
82 baseoff = sh.sh_offset;
83 baseaddr = sh.sh_addr;
98 if (gelf_getshdr(scn, &sh) == NULL) {
103 if ((sh.sh_flags & SHF_ALLOC) == 0 ||
104 sh.sh_type == SHT_NOBITS ||
105 sh.sh_size == 0)
118 off = sh.sh_addr - baseaddr;
145 GElf_Shdr sh;
262 if (gelf_getshdr(ecp->symtab->os, &sh) == NULL)
265 sh.sh_link = elf_ndxscn(ecp->strtab->os);
266 if (!gelf_update_shdr(ecp->symtab->os, &sh))