Home
last modified time | relevance | path

Searched refs:d_size (Results 1 – 25 of 51) sorted by relevance

123

/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dutils.c230 temp_size = data->d_size; in doprint()
296 data->d_size == 0) { in doappend()
310 data->d_size = len + 2; in doappend()
317 p = malloc(len + 1 + data->d_size); in doappend()
326 data->d_size = data->d_size + len + 1; in doappend()
335 data->d_size == 0) { in doappend()
351 data->d_size = len + 2; in doappend()
368 data->d_size = data->d_size + len + 1; in doappend()
399 p = malloc(data->d_size); in docompress()
403 size = info->mdata->d_size; in docompress()
[all …]
H A Dfile.c969 dst_shdr.sh_size = elf_data->d_size; in build_file()
993 data->d_buf, data->d_size); in build_file()
995 [data->d_size], SECT_NAME, sect_len + 1); in build_file()
999 elf_data->d_size += sect_len + 1; in build_file()
1068 elf_data->d_size = string_size + 1; in build_file()
1119 dst_shdr.sh_size = data->d_size; in build_file()
1142 new_offset += data->d_size; in build_file()
1636 malloc(sinfo->data->d_size)) == NULL) { in post_process()
1652 sinfo->mdata->d_size = j * sizeof (Word); in post_process()
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dstrptr.c84 (off < d->d_off + d->d_size)) { in elf_strptr()
101 if (off < d->d_size) { in elf_strptr()
107 sz += d->d_size; in elf_strptr()
108 if (off < d->d_size) in elf_strptr()
110 off -= d->d_size; in elf_strptr()
H A Dupdate.c243 fsz *= (d->db_data.d_size / j); in _elf_upd_lib()
411 fsz *= (d->db_data.d_size / j); in _elf_upd_usr()
536 src.d_size = sizeof (Ehdr); in wrt()
539 dst.d_size = eh->e_ehsize; in wrt()
560 src.d_size = elf->ed_phdrsz; in wrt()
650 dst.d_size = d->db_osz; in wrt()
676 src.d_size = sizeof (Shdr); in wrt()
678 dst.d_size = eh->e_shentsize; in wrt()
877 src.d_size = dst.d_size = sizeof (Ehdr); in _elfxx_swap_wrimage()
897 src.d_size = dst.d_size = elf->ed_phdrsz; in _elfxx_swap_wrimage()
[all …]
H A Dclscook.c174 d->db_data.d_size = MAX(sh->sh_size, (sh->sh_size / fsz) * msz); in _elf_cookscn()
247 src.d_size = fsz; in _elf_ehdr()
250 dst.d_size = sizeof (Ehdr); in _elf_ehdr()
327 src.d_size = fsz; in _elf_phdr()
330 dst.d_size = msz; in _elf_phdr()
379 src.d_size = fsz; in _elf_shdr()
382 dst.d_size = sizeof (Shdr); in _elf_shdr()
414 src.d_size = fsz; in _elf_shdr()
417 dst.d_size = msz; in _elf_shdr()
H A Dgelf.c488 if ((entsize * ndx) >= data->d_size) { in gelf_getsym()
530 if ((entsize * ndx) >= dst->d_size) { in gelf_update_sym()
574 if ((entsize * ndx) >= data->d_size) { in gelf_getsyminfo()
610 if ((entsize * ndx) >= dst->d_size) { in gelf_update_syminfo()
680 if ((entsize * ndx) >= dst->d_size) { in gelf_update_dyn()
760 if ((entsize * ndx) >= src->d_size) { in gelf_getmove()
841 if ((entsize * ndx) >= src->d_size) { in gelf_getrela()
886 if ((entsize * ndx) >= dst->d_size) { in gelf_update_rela()
934 if ((entsize * ndx) >= src->d_size) { in gelf_getrel()
977 if ((entsize * ndx) >= dst->d_size) { in gelf_update_rel()
[all …]
H A Dgetdata.c215 src.d_size = d->db_fsz; in _elf_locked_getdata()
258 if (d->db_data.d_size <= src.d_size) { in _elf_locked_getdata()
271 if ((d->db_buf = malloc(d->db_data.d_size)) == 0) { in _elf_locked_getdata()
H A Drawdata.c90 raw->db_data.d_size = d->db_shsz; in elf_rawdata()
108 raw->db_data.d_size = d->db_fsz; in elf_rawdata()
H A Dchecksum.c159 sum = sumupd(sum, data->d_buf, data->d_size); in elf_checksum()
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dstr.c375 argstate->str.sec->sec_data->d_size)) { in process_args()
384 sec_data->d_size)); in process_args()
400 argstate->str.sec->sec_data->d_size - 1, NULL)); in process_args()
442 EC_WORD(argstate->str.sec->sec_data->d_size - in print_strtab()
444 EC_WORD(argstate->str.sec->sec_data->d_size - 1), in print_strtab()
450 tbl_limit = str + argstate->str.sec->sec_data->d_size; in print_strtab()
535 if ((ndx + ncp) > strsec->sec_data->d_size) in cmd_body_set()
541 if (((ndx + ncp) == strsec->sec_data->d_size) && in cmd_body_set()
587 Word pad_ndx = argstate->str.sec->sec_data->d_size - in cmd_body_set()
629 count = strsec->sec_data->d_size - argstate->str.ndx; in cmd_body_zero()
[all …]
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Dacom.c93 ndx = data->d_off + data->d_size; in update_comment()
100 data->d_size = strlen(CommentStr) + 1; in update_comment()
144 data->d_size = strlen(comment) + 1; in update_comment()
/illumos-gate/usr/src/test/os-tests/tests/cores/secmapper/
H A Dsecmapper.c263 if (comp_data->d_size != src_data->d_size) { in secmap_data_cmp()
266 src_data->d_size, comp_data->d_size); in secmap_data_cmp()
271 comp_data->d_size) != 0) { in secmap_data_cmp()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dsections.c643 data->d_size = size; in new_section()
707 data->d_size = size; in new_section_from_template()
1312 data->d_size = size; in make_dynamic()
1342 data->d_size = size; in ld_make_got()
1401 data->d_size = size; in make_interp()
1961 data->d_size = size; in make_plt()
2032 data->d_size = size; in make_hash()
2097 data->d_size = size; in make_symtab()
2180 data->d_size = size; in make_dynsym()
2326 data->d_size = size; in make_shstrtab()
[all …]
H A Doutfile.c245 data->d_size = size; in pad_outfile()
647 data->d_size = SIZE_MAX; in ld_create_outfile()
654 data->d_size = (size_t)sz; in ld_create_outfile()
677 if ((data->d_size != 0) && (nonempty == NULL)) { in ld_create_outfile()
H A Dgroups.c243 gd.gd_cnt = gisc->is_indata->d_size / sizeof (Word); in ld_group_process()
313 gisc->is_indata->d_size -= sizeof (Word); in ld_group_process()
/illumos-gate/usr/src/cmd/sgs/libelf/misc/
H A Dnlist.c86 if (symdata->d_size == 0) in _elf_nlist()
89 count = symdata->d_size / s_buf.sh_entsize; in _elf_nlist()
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_elfwrite.c214 strdatasz = ddata->d_size + shdr.sh_size + in ctf_write_elf()
226 ddata->d_size += seclen + 1; in ctf_write_elf()
326 ddata->d_size = elfsize; in ctf_write_elf()
329 ddata->d_size = fp->ctf_size; in ctf_write_elf()
/illumos-gate/usr/src/lib/libelfsign/common/
H A Delfsignlib.c558 old_size = data->d_size; in elfsign_signatures()
572 data->d_size = new_size; in elfsign_signatures()
655 data->d_size = fssize; in elfsign_signatures()
659 data->d_size); in elfsign_signatures()
667 *fsspp = malloc(data->d_size); in elfsign_signatures()
670 (void) memcpy(*fsspp, data->d_buf, data->d_size); in elfsign_signatures()
676 *fslen = data->d_size; in elfsign_signatures()
958 "with %s data size=%d", name, data->d_size); in elfsign_hash_common()
959 SHA1Update(&ctx, data->d_buf, data->d_size); in elfsign_hash_common()
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/
H A Delfwrap.c324 data->d_size = outsec->os_size; in output()
335 data->d_size = (odp->od_symtabno * tdesc.td_symsz); in output()
347 data->d_size = odp->od_shstrtabsz; in output()
349 data->d_size = odp->od_strtabsz; in output()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_link.c1171 isym = data_sym->d_size / symsize; in process_obj()
1172 istr = data_str->d_size; in process_obj()
1208 if (fsym.st_name > data_str->d_size) { in process_obj()
1265 if ((pair->dlp_str = dt_alloc(dtp, data_str->d_size + in process_obj()
1271 if ((pair->dlp_sym = dt_alloc(dtp, data_sym->d_size + in process_obj()
1281 bcopy(data_str->d_buf, pair->dlp_str, data_str->d_size); in process_obj()
1283 data_str->d_size += len; in process_obj()
1289 bcopy(data_sym->d_buf, pair->dlp_sym, data_sym->d_size); in process_obj()
1291 data_sym->d_size += nsym * symsize; in process_obj()
1323 rsym.st_name > data_str->d_size) in process_obj()
[all …]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dsegments.c164 EC_XWORD(data->d_size), EC_OFF(data->d_off), in Dbg_seg_os()
193 EC_XWORD(data->d_size), EC_OFF(data->d_off), in Dbg_seg_os()
/illumos-gate/usr/src/cmd/file/
H A Delf_read.c155 src.d_size = elf_fsize(type, 1, version); in file_xlatetom()
156 dst.d_size = elf_fsize(type, 1, EV_CURRENT); in file_xlatetom()
160 (void) memcpy(hdr, &hbuf, dst.d_size); in file_xlatetom()
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c240 sym_end = sym + symdata->d_size / sizeof (Elf32_Sym); in _elf_nlist()
332 dsrc->d_size = size; in elf_read()
335 ddst->d_size = memsize; in elf_read()
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c117 p_data->d_size == 0) { in get_scndata()
120 *size = p_data->d_size; in get_scndata()
135 p_data->d_size == 0) { in get_rawscn()
139 *size = p_data->d_size; in get_rawscn()
834 sym_size = sym_data->d_size; in dump_reloc_table()
848 reloc_size = rel_data->d_size; in dump_reloc_table()
877 reloc_size = rel_data->d_size; in dump_reloc_table()
1002 sym_size = sym_data->d_size; in dump_symbol_table()
/illumos-gate/usr/src/cmd/dis/
H A Ddis_target.c277 symshndx_size = data->d_size / in construct_symtab()
294 tgt->dt_symcount = symdata->d_size / gelf_fsize(tgt->dt_elf, ELF_T_SYM, in construct_symtab()
835 return (scn->ds_data->d_size); in dis_section_size()
905 df.df_data->d_size == 0) { in dis_tgt_function_iter()

123