/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab_machelf32.c | 498 sp->sh_size = sizeof (shstr); in fake_elf64() 519 sp->sh_size = ldynsym_size; in fake_elf64() 527 sp->sh_addr) != sp->sh_size) { in fake_elf64() 532 off += sp->sh_size; in fake_elf64() 547 sp->sh_size = dynsym_size; in fake_elf64() 554 sp->sh_addr) != sp->sh_size) { in fake_elf64() 573 sp->sh_size = d[DI_STRSZ]->d_un.d_val; in fake_elf64() 580 sp->sh_addr) != sp->sh_size) { in fake_elf64() 597 sp->sh_size = phdr->p_filesz; in fake_elf64() 699 sp->sh_size = pltsz; in fake_elf64() [all …]
|
H A D | Pcore.c | 1486 size = base + symtab->sh_size + strtab->sh_size; in fake_up_symtab() 1503 b->shdr[1].sh_size = symtab->sh_size; in fake_up_symtab() 1518 off += b->shdr[1].sh_size; in fake_up_symtab() 1521 b->shdr[2].sh_size = strtab->sh_size; in fake_up_symtab() 1534 off += b->shdr[2].sh_size; in fake_up_symtab() 1552 size = base + symtab->sh_size + strtab->sh_size; in fake_up_symtab() 1569 b->shdr[1].sh_size = symtab->sh_size; in fake_up_symtab() 1583 off += b->shdr[1].sh_size; in fake_up_symtab() 1586 b->shdr[2].sh_size = strtab->sh_size; in fake_up_symtab() 1656 dst->sh_size = (Elf64_Xword)src->sh_size; in core_shdr_to_gelf() [all …]
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | sharefs.c | 55 sh->sh_size = i; in _sharefs() 58 sh->sh_size += j; in _sharefs() 62 sh->sh_size += j; in _sharefs() 66 sh->sh_size += j; in _sharefs() 70 sh->sh_size += j; in _sharefs()
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 165 if (i == h.e_shnum || sh[i].sh_size == 0 || in __fex_read_syms() 169 sh[sh[i].sh_link].sh_size == 0) in __fex_read_syms() 176 size = (int) (sh[i].sh_size + sh[sh[i].sh_link].sh_size); in __fex_read_syms() 192 read(fd, stbuf, sh[i].sh_size) != sh[i].sh_size || in __fex_read_syms() 195 read(fd, stbuf + sh[i].sh_size, sh[sh[i].sh_link].sh_size) != in __fex_read_syms() 196 sh[sh[i].sh_link].sh_size) in __fex_read_syms() 201 nsyms = (int) (sh[i].sh_size / sh[i].sh_entsize); in __fex_read_syms() 202 stoffset = (int) sh[i].sh_size; in __fex_read_syms()
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_elfwrite.c | 214 strdatasz = ddata->d_size + shdr.sh_size + in ctf_write_elf() 221 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); in ctf_write_elf() 222 (void) strcpy((caddr_t)ddata->d_buf + shdr.sh_size, in ctf_write_elf() 224 ctfnameoff = (off_t)shdr.sh_size; in ctf_write_elf() 225 shdr.sh_size += seclen + 1; in ctf_write_elf() 233 int nsym = shdr.sh_size / shdr.sh_entsize; in ctf_write_elf() 237 symdatasz = shdr.sh_size; in ctf_write_elf() 243 (void) bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); in ctf_write_elf() 276 new_offset += shdr.sh_size; in ctf_write_elf() 295 shdr.sh_size = fp->ctf_size; in ctf_write_elf() [all …]
|
H A D | ctf_lib.c | 372 dst->sh_size = src->sh_size; in shdr_to_gelf() 519 shnum = x32.sh_size; in ctf_fdcreate_int() 529 shnum = x64.sh_size; in ctf_fdcreate_int() 571 strs_mapsz = sp[shstrndx].sh_size + in ctf_fdcreate_int() 596 if (shp->sh_name >= sp[shstrndx].sh_size || in ctf_fdcreate_int() 597 lhp->sh_name >= sp[shstrndx].sh_size) in ctf_fdcreate_int() 606 ctfsect.cts_size = shp->sh_size; in ctf_fdcreate_int() 614 symsect.cts_size = shp->sh_size; in ctf_fdcreate_int() 621 strsect.cts_size = lhp->sh_size; in ctf_fdcreate_int()
|
/illumos-gate/usr/src/uts/common/fs/sharefs/ |
H A D | sharetab.c | 67 sh->sh_size += shl.shl_##field; /* Debug counting */ 151 ASSERT(sg->sharetab_size >= s->sh_size); in sharefs_remove() 152 sg->sharetab_size -= s->sh_size; in sharefs_remove() 215 sh->sh_size = shl->shl_path + shl->shl_res + in sharefs_add() 218 sh->sh_size = strlen(sh->sh_path) + in sharefs_add() 224 sh->sh_size += 5; in sharefs_add() 245 ASSERT(sg->sharetab_size >= s->sh_size); in sharefs_add() 246 sg->sharetab_size -= s->sh_size; in sharefs_add() 247 sg->sharetab_size += sh->sh_size; in sharefs_add() 273 sg->sharetab_size += sh->sh_size; in sharefs_add()
|
/illumos-gate/usr/src/boot/common/ |
H A D | load_elf_obj.c | 219 if (shdr[i].sh_size == 0) in __elfN() 226 lastaddr += shdr[i].sh_size; in __elfN() 239 lastaddr += shdr[i].sh_size; in __elfN() 250 lastaddr += shdr[ef->symtabindex].sh_size; in __elfN() 261 lastaddr += shdr[symstrindex].sh_size; in __elfN() 273 lastaddr += shdr[ef->shstrindex].sh_size; in __elfN() 282 lastaddr += shdr[i].sh_size; in __elfN() 444 *stopp = shdr[i].sh_addr + shdr[i].sh_size; in __elfN() 483 shdr[shdr[i].sh_info].sh_size) in __elfN() 490 nrela = shdr[i].sh_size / sizeof(Elf_Rela); in __elfN() [all …]
|
H A D | load_elf.c | 562 chunk = shdr[ehdr->e_shstrndx].sh_size; in __elfN() 574 size = shdr[i].sh_size; in __elfN() 595 (shdr[i].sh_offset + shdr[i].sh_size <= in __elfN() 598 shdr[i].sh_size = 0; in __elfN() 633 size = shdr[i].sh_size; in __elfN() 641 (uintmax_t)(lastaddr + shdr[i].sh_size)); in __elfN() 665 lastaddr += shdr[i].sh_size; in __elfN() 862 shdr[ef.ehdr->e_shstrndx].sh_size); in __elfN() 897 p_end = dest + sh_meta->sh_size; in __elfN() 898 dest += sh_meta->sh_size; in __elfN() [all …]
|
/illumos-gate/usr/src/cmd/file/ |
H A D | elf_read.c | 218 EI_Ehdr_shnum = EI_Shdr.sh_size; in elf_read() 436 if ((strtab = malloc(shdr->sh_size)) == NULL) in process_shdr() 439 if (pread64(EI->elffd, strtab, shdr->sh_size, shdr->sh_offset) in process_shdr() 440 != shdr->sh_size) in process_shdr() 443 strtab_sz = shdr->sh_size; in process_shdr() 467 if (shdr->sh_size == 0 || shdr->sh_entsize == 0) { in process_shdr() 472 capn = (shdr->sh_size / shdr->sh_entsize); in process_shdr() 518 if (shdr->sh_size == 0 || shdr->sh_entsize == 0) { in process_shdr() 524 dynn = (shdr->sh_size / shdr->sh_entsize); in process_shdr()
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | xpv_panic.c | 857 namesize = shp->sh_size; in init_xen_module() 858 names = kmem_zalloc(shp->sh_size, KM_SLEEP); in init_xen_module() 882 if ((shp->sh_size != 0) && in init_xen_module() 900 mp->data_size += ALIGN(shp->sh_size, 8); in init_xen_module() 907 mp->text_size += ALIGN(shp->sh_size, 8); in init_xen_module() 937 mp->symsize = mp->symhdr->sh_size + in init_xen_module() 938 mp->nsyms * sizeof (symid_t) + mp->strhdr->sh_size; in init_xen_module() 944 mp->symhdr->sh_size, mp->symhdr->sh_offset) < 0) || in init_xen_module() 946 mp->strhdr->sh_size, mp->strhdr->sh_offset) < 0)) in init_xen_module() 954 mp->ctfdata = kmem_zalloc(ctf_shp->sh_size, KM_SLEEP); in init_xen_module() [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_link.c | 64 elf_file.shdr[(index)].sh_size) 506 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); in dump_elf32() 515 shp->sh_size = dof->dofh_filesz; in dump_elf32() 517 off = shp->sh_offset + shp->sh_size; in dump_elf32() 524 shp->sh_size = de.de_strlen; in dump_elf32() 643 shp->sh_size = sizeof (DTRACE_SHSTRTAB64); in dump_elf64() 652 shp->sh_size = dof->dofh_filesz; in dump_elf64() 654 off = shp->sh_offset + shp->sh_size; in dump_elf64() 661 shp->sh_size = de.de_strlen; in dump_elf64() 1286 shdr_str.sh_size += len; in process_obj() [all …]
|
/illumos-gate/usr/src/cmd/sgs/size/common/ |
H A D | process.c | 161 first += shdr.sh_size; in process() 166 second += shdr.sh_size; in process() 170 third += shdr.sh_size; in process() 175 size += shdr.sh_size; in process() 179 (void) printf(prusect[numbase], shdr.sh_size); in process()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 68 shstr->gs_shdr.sh_size) { in gelf_sect_init() 78 if (shp->sh_name >= shstr->gs_shdr.sh_size) { in gelf_sect_init() 123 gpp->p_filesz = shp->sh_size; in gelf_sect_init() 124 gpp->p_memsz = shp->sh_size; in gelf_sect_init() 161 if (nbytes < gsp->gs_shdr.sh_size) { in mdb_gelf_sect_load() 166 (size_t)gsp->gs_shdr.sh_size - nbytes); in mdb_gelf_sect_load() 205 dst->sh_size = src->sh_size; in gelf32_to_shdr() 626 gf->gf_shnum = shdr0.sh_size; in gelf32_init() 685 gf->gf_shnum = shdr0.sh_size; in gelf64_init() 950 n = gst->gst_dsect->gs_shdr.sh_size / in gelf32_symtab_init() [all …]
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_elfload.c | 192 (ulong_t)shdr->sh_size, in dboot_elfload64() 194 next_addr + shdr->sh_size); in dboot_elfload64() 196 shdr->sh_size); in dboot_elfload64()
|
/illumos-gate/usr/src/uts/common/sharefs/ |
H A D | share.h | 46 size_t sh_size; member 57 size32_t sh_size; member
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj.c | 931 mp->symsize = mp->symhdr->sh_size + mp->strhdr->sh_size + sizeof (int) + in load_linker() 1570 mp->strhdr->sh_size = strsize; in kobj_export_ksyms() 1608 shp->sh_size); in kobj_export_ksyms() 1804 kobj_free(dyndata, dshp->sh_size); in do_dynamic() 2224 shp->sh_size); in free_module_data() 2417 textptr += shp->sh_size; in get_progbits() 2420 bits_ptr += shp->sh_size; in get_progbits() 2641 shstrlen = shp->sh_size; in get_ctf() 2670 mp->ctfsize = shp->sh_size; in get_ctf() 2713 (size_t)shp->sh_size); in crypto_es_hash() [all …]
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | nlist.c | 201 (size_t)symhdr->sh_size, in _elf_nlist() 202 (size_t)((symhdr->sh_size / symhdr->sh_entsize) * in _elf_nlist() 225 if ((strdata = elf_read(fd, strhdr->sh_offset, strhdr->sh_size, in _elf_nlist() 226 strhdr->sh_size, ELF_T_BYTE)) == 0) { in _elf_nlist() 237 ((char *)strdata->d_buf)[strhdr->sh_size-1] = '\0'; in _elf_nlist() 244 if (sym->st_name > strhdr->sh_size) { in _elf_nlist()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | util_machelf.c | 217 Word cnt = symsec->sec_shdr->sh_size / symsec->sec_shdr->sh_entsize; in elfedit_name_to_symndx() 382 *num = cache->sec_shdr->sh_size / in elfedit_sec_getcap() 421 *num = cache->sec_shdr->sh_size / cache->sec_shdr->sh_entsize; in elfedit_sec_getdyn() 462 *num = cache->sec_shdr->sh_size / in elfedit_sec_getsyminfo() 609 *num = symsec->sec_shdr->sh_size / symsec->sec_shdr->sh_entsize; in elfedit_sec_getsymtab() 675 *num = xshndxsec->sec_shdr->sh_size / xshndxsec->sec_shdr->sh_entsize; in elfedit_sec_getxshndx() 736 *num = versymsec->sec_shdr->sh_size / versymsec->sec_shdr->sh_entsize; in elfedit_sec_getversym() 818 len = sec->sec_shdr->sh_size - tail_ign; in elfedit_sec_findstr() 868 Word numdyn = dynsec->sec_shdr->sh_size / dynsec->sec_shdr->sh_entsize; in elfedit_dynstr_getpad() 945 ins_off = strsec->sec_shdr->sh_size - tail_ign; in elfedit_dynstr_insert()
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | sections.c | 653 shdr->sh_size = size; in new_section() 719 shdr->sh_size = size; in new_section_from_template() 766 shdr->sh_size = size; in ld_make_bss() 1311 shdr->sh_size = (Xword)size; in make_dynamic() 1345 shdr->sh_size = (Xword)size; in ld_make_got() 1402 shdr->sh_size = (Xword)size; in make_interp() 1965 shdr->sh_size = (Xword)size; in make_plt() 2033 shdr->sh_size = (Xword)size; in make_hash() 2098 shdr->sh_size = (Xword)size; in make_symtab() 2181 shdr->sh_size = (Xword)size; in make_dynsym() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ksyms_snapshot.c | 85 size_t nsyms = symhdr->sh_size / symsize; in ksyms_walk_one() 169 shp->sh_size = kw.kw_size[KW_LOCALS] + kw.kw_size[KW_GLOBALS]; in ksyms_snapshot() 180 shp->sh_size = kw.kw_size[KW_STRINGS]; in ksyms_snapshot() 187 shp->sh_size = sizeof (ksyms_shstrtab); in ksyms_snapshot()
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | elfdump.c | 1983 dynnum = dyncache->c_shdr->sh_size / in syminfo() 2383 (shdr->sh_size == 0) || in versions() 2699 (relsize > shdr->sh_size)) { in reloc() 2709 if (shdr->sh_size == 0) { in reloc() 2718 relnum = shdr->sh_size / relsize; in reloc() 4384 if (gotshdr->sh_size == 0) { in got() 4391 gotend = gotbgn + gotshdr->sh_size; in got() 4448 (relsize > shdr->sh_size)) { in got() 4458 if (shdr->sh_size == 0) { in got() 4467 relnum = shdr->sh_size / relsize; in got() [all …]
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | syms.c | 55 symn = shdr->sh_size / shdr->sh_entsize; in update_sym() 91 num = (Word)(shdr->sh_size / shdr->sh_entsize); in syminfo()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | shdr.c | 323 EC_XWORD(shdr->sh_size)); in print_shdr() 675 Xword sh_size; in cmd_body() local 677 sh_size = elfedit_atoui(argstate.argv[1], NULL); in cmd_body() 678 if (shdr->sh_size == sh_size) { in cmd_body() 683 EC_XWORD(shdr->sh_size)); in cmd_body() 689 EC_XWORD(shdr->sh_size), in cmd_body() 690 EC_XWORD(sh_size)); in cmd_body() 692 shdr->sh_size = sh_size; in cmd_body()
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | clscook.c | 174 d->db_data.d_size = MAX(sh->sh_size, (sh->sh_size / fsz) * msz); in _elf_cookscn() 175 d->db_shsz = sh->sh_size; in _elf_cookscn() 183 d->db_fsz = sh->sh_size; in _elf_cookscn() 388 scncnt = sh.sh_size; in _elf_shdr()
|