Home
last modified time | relevance | path

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

123

/titanic_41/usr/src/cmd/sgs/mcs/common/
H A Dutils.c203 data->d_buf = calloc(1, data->d_size); in dozap()
227 temp_size = data->d_size; in doprint()
293 data->d_size == 0) { in doappend()
307 data->d_size = len + 2; in doappend()
314 p = malloc(len + 1 + data->d_size); in doappend()
320 (void) memcpy(p, data->d_buf, data->d_size); in doappend()
321 (void) memcpy(&p[data->d_size], a_string, len + 1); in doappend()
323 data->d_size = data->d_size + len + 1; in doappend()
332 data->d_size == 0) { in doappend()
348 data->d_size = len + 2; in doappend()
[all …]
H A Dfile.c961 dst_shdr.sh_size = elf_data->d_size; in build_file()
985 data->d_buf, data->d_size); in build_file()
987 [data->d_size], SECT_NAME, sect_len + 1); in build_file()
991 elf_data->d_size += sect_len + 1; in build_file()
1060 elf_data->d_size = string_size + 1; in build_file()
1111 dst_shdr.sh_size = data->d_size; in build_file()
1134 new_offset += data->d_size; in build_file()
1628 malloc(sinfo->data->d_size)) == NULL) { in post_process()
1644 sinfo->mdata->d_size = j * sizeof (Word); in post_process()
/titanic_41/usr/src/cmd/sgs/prof/common/
H A DsymintLoad.c143 DEBUG_EXP(printf("symdat_pri_p->d_size = %x\n", symdat_pri_p->d_size)); in _symintLoad()
145 prstsym_size = (symdat_pri_p->d_size / profPtr->pf_nstsyms); in _symintLoad()
165 st_size = symdat_pri_p->d_size; in _symintLoad()
167 st_size += symdat_aux_p->d_size; in _symintLoad()
177 symdat_aux_p->d_size); in _symintLoad()
182 (void) memcpy(symlist, symdat_pri_p->d_buf, symdat_pri_p->d_size); in _symintLoad()
/titanic_41/usr/src/cmd/sgs/libelf/common/
H A Dstrptr.c86 (off < d->d_off + d->d_size)) { in elf_strptr()
103 if (off < d->d_size) { in elf_strptr()
109 sz += d->d_size; in elf_strptr()
110 if (off < d->d_size) in elf_strptr()
112 off -= d->d_size; in elf_strptr()
H A Dupdate.c240 fsz *= (d->db_data.d_size / j); in _elf_upd_lib()
409 fsz *= (d->db_data.d_size / j); in _elf_upd_usr()
535 src.d_size = sizeof (Ehdr); in wrt()
538 dst.d_size = eh->e_ehsize; in wrt()
559 src.d_size = elf->ed_phdrsz; in wrt()
563 dst.d_size = eh->e_phnum * eh->e_phentsize; in wrt()
564 hi = (Xword)(eh->e_phoff + dst.d_size); in wrt()
649 dst.d_size = d->db_osz; in wrt()
660 off = (Xword)(d->db_data.d_off + dst.d_size); in wrt()
675 src.d_size = sizeof (Shdr); in wrt()
[all …]
H A Dclscook.c179 d->db_data.d_size = MAX(sh->sh_size, (sh->sh_size / fsz) * msz); in _elf_cookscn()
254 src.d_size = fsz; in _elf_ehdr()
257 dst.d_size = sizeof (Ehdr); in _elf_ehdr()
335 src.d_size = fsz; in _elf_phdr()
338 dst.d_size = msz; in _elf_phdr()
388 src.d_size = fsz; in _elf_shdr()
391 dst.d_size = sizeof (Shdr); in _elf_shdr()
423 src.d_size = fsz; in _elf_shdr()
426 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()
644 if ((entsize * ndx) >= data->d_size) { in gelf_getdyn()
680 if ((entsize * ndx) >= dst->d_size) { in gelf_update_dyn()
707 if ((ndx * sizeof (Elf32_Word)) >= shndxdata->d_size) { in gelf_getsymshndx()
728 if ((ndx * sizeof (Elf32_Word)) >= shndxdata->d_size) { in gelf_update_symshndx()
760 if ((entsize * ndx) >= src->d_size) { in gelf_getmove()
800 if ((entsize * ndx) >= dest->d_size) { in gelf_update_move()
[all …]
H A Dgetdata.c217 src.d_size = d->db_fsz; in _elf_locked_getdata()
260 if (d->db_data.d_size <= src.d_size) { in _elf_locked_getdata()
273 if ((d->db_buf = malloc(d->db_data.d_size)) == 0) { in _elf_locked_getdata()
H A Drawdata.c92 raw->db_data.d_size = d->db_shsz; in elf_rawdata()
110 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()
/titanic_41/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()
600 (argstate->str.sec->sec_data->d_size - new_pad_ndx); in cmd_body_set()
[all …]
/titanic_41/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()
H A Dpcom.c96 i < data->d_size; i++) in print_comment()
/titanic_41/usr/src/cmd/sgs/libld/common/
H A Dsections.c640 data->d_size = size; in new_section()
704 data->d_size = size; in new_section_from_template()
760 data->d_size = (size_t)size; in ld_make_bss()
916 data->d_size = strlen(ofl->ofl_sgsid) + 1; in make_comment()
919 shdr->sh_size = (Xword)data->d_size; in make_comment()
1302 data->d_size = size; in make_dynamic()
1332 data->d_size = size; in ld_make_got()
1391 data->d_size = size; in make_interp()
1932 data->d_size = size; in make_plt()
2003 data->d_size = size; in make_hash()
[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()
/titanic_41/usr/src/cmd/sgs/libelf/misc/
H A Dnlist.c89 if (symdata->d_size == 0) in _elf_nlist()
92 count = symdata->d_size / s_buf.sh_entsize; in _elf_nlist()
/titanic_41/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()
/titanic_41/usr/src/cmd/sgs/elfwrap/common/
H A Delfwrap.c325 data->d_size = outsec->os_size; in output()
336 data->d_size = (odp->od_symtabno * tdesc.td_symsz); in output()
348 data->d_size = odp->od_shstrtabsz; in output()
350 data->d_size = odp->od_strtabsz; in output()
/titanic_41/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 …]
/titanic_41/usr/src/cmd/file/
H A Delf_read.c154 src.d_size = elf_fsize(type, 1, version); in file_xlatetom()
155 dst.d_size = elf_fsize(type, 1, EV_CURRENT); in file_xlatetom()
159 (void) memcpy(hdr, &hbuf, dst.d_size); in file_xlatetom()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/cmd/dis/
H A Ddis_target.c262 symshndx_size = data->d_size / in construct_symtab()
279 tgt->dt_symcount = symdata->d_size / gelf_fsize(tgt->dt_elf, ELF_T_SYM, in construct_symtab()
820 return (scn->ds_data->d_size); in dis_section_size()
890 df.df_data->d_size == 0) { in dis_tgt_function_iter()
/titanic_41/usr/src/cmd/sgs/dump/common/
H A Ddump.c116 p_data->d_size == 0) { in get_scndata()
119 *size = p_data->d_size; in get_scndata()
134 p_data->d_size == 0) { in get_rawscn()
138 *size = p_data->d_size; in get_rawscn()
829 sym_size = sym_data->d_size; in dump_reloc_table()
849 reloc_size = rel_data->d_size; in dump_reloc_table()
878 reloc_size = rel_data->d_size; in dump_reloc_table()
1003 sym_size = sym_data->d_size; in dump_symbol_table()
/titanic_41/usr/src/head/
H A Ddirent.h66 int d_size; /* amount of valid data */

123