Lines Matching defs:sh
47 GElf_Shdr sh;
122 if (gelf_getshdr(scn, &sh) == NULL) {
127 if ((name = elf_strptr(e, indx, sh.sh_name)) ==
147 poh.oh_textbase = (uint32_t) sh.sh_addr;
148 poh.oh_textsize = (uint32_t) roundup(sh.sh_size,
152 poh.oh_database = sh.sh_addr;
153 if (sh.sh_type == SHT_NOBITS)
155 roundup(sh.sh_size, poh.oh_filealign);
156 else if (sh.sh_flags & SHF_ALLOC)
158 roundup(sh.sh_size, poh.oh_filealign);
178 psh.sh_addr = sh.sh_addr;
179 psh.sh_virtsize = sh.sh_size;
180 if (sh.sh_type != SHT_NOBITS)
181 psh.sh_rawsize = roundup(sh.sh_size, poh.oh_filealign);
189 if (sh.sh_flags & SHF_WRITE)
191 if (sh.sh_flags & SHF_EXECINSTR)
194 if ((sh.sh_flags & SHF_ALLOC) && (psh.sh_char & 0xF0) == 0)
213 if (sh.sh_type != SHT_NOBITS) {
214 pb->pb_size = roundup(sh.sh_size, poh.oh_filealign);
219 memcpy(pb->pb_buf, d->d_buf, sh.sh_size);