Lines Matching defs:sh
63 GElf_Shdr *sh);
84 GElf_Shdr sh;
98 if (gelf_getshdr(scn, &sh) == NULL) {
104 if (sh.sh_type != SHT_SYMTAB)
106 srec_write_symtab(ofd, ofn, e, scn, &sh);
120 if (gelf_getshdr(scn, &sh) == NULL) {
126 if ((sh.sh_flags & SHF_ALLOC) == 0 ||
127 sh.sh_type == SHT_NOBITS ||
128 sh.sh_size == 0)
130 if ((uint64_t) sh.sh_addr > max_addr)
131 max_addr = sh.sh_addr;
162 if (gelf_getshdr(scn, &sh) == NULL) {
167 if ((sh.sh_flags & SHF_ALLOC) == 0 ||
168 sh.sh_type == SHT_NOBITS ||
169 sh.sh_size == 0)
171 if (sh.sh_addr > 0xFFFFFFFF) {
184 srec_write_Sd(ofd, dr, sh.sh_addr, d->d_buf, d->d_size, rlen);
416 GElf_Shdr sh;
427 if (gelf_getshdr(scn, &sh) == NULL) {
432 if ((sh.sh_flags & SHF_ALLOC) == 0 ||
433 sh.sh_type == SHT_NOBITS ||
434 sh.sh_size == 0)
436 if (sh.sh_addr > 0xFFFFFFFF) {
449 addr_hi = (sh.sh_addr >> 16) & 0xFFFF;
455 ihex_write_00(ofd, sh.sh_addr, d->d_buf, d->d_size);
744 srec_write_symtab(int ofd, const char *ofn, Elf *e, Elf_Scn *scn, GElf_Shdr *sh)
772 sc = d->d_size / sh->sh_entsize;
781 if ((name = elf_strptr(e, sh->sh_link, sym.st_name)) == NULL) {