Home
last modified time | relevance | path

Searched refs:d_buf (Results 1 – 25 of 88) sorted by relevance

1234

/titanic_41/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c168 ehdr = (Elf32_Ehdr *)edata->d_buf; in _elf_nlist()
171 free(edata->d_buf); in _elf_nlist()
180 free(edata->d_buf); in _elf_nlist()
186 symhdr = (Elf32_Shdr *)secdata->d_buf; in _elf_nlist()
193 free(secdata->d_buf); in _elf_nlist()
195 free(edata->d_buf); in _elf_nlist()
204 free(secdata->d_buf); in _elf_nlist()
206 free(edata->d_buf); in _elf_nlist()
212 strhdr = (Elf32_Shdr *)secdata->d_buf; in _elf_nlist()
216 free(symdata->d_buf); in _elf_nlist()
[all …]
/titanic_41/usr/src/cmd/sgs/mcs/common/
H A Dutils.c203 data->d_buf = calloc(1, data->d_size); in dozap()
204 if (data->d_buf == NULL) { in dozap()
228 temp_string = data->d_buf; in doprint()
299 data->d_buf = calloc(1, len + 2); in doappend()
300 if (data->d_buf == NULL) { in doappend()
305 tp = (char *)data->d_buf; in doappend()
320 (void) memcpy(p, data->d_buf, data->d_size); in doappend()
322 data->d_buf = p; in doappend()
338 if (data->d_buf) in doappend()
339 free(data->d_buf); in doappend()
[all …]
/titanic_41/usr/src/cmd/sgs/libelf/common/
H A Dgelf.c493 s = &(((Elf32_Sym *)data->d_buf)[ndx]); in gelf_getsym()
502 *dst = ((GElf_Sym *)data->d_buf)[ndx]; in gelf_getsym()
536 d = &(((Elf32_Sym *)dst->d_buf)[ndx]); in gelf_update_sym()
547 ((Elf64_Sym *)dst->d_buf)[ndx] = *((Elf64_Sym *)src); in gelf_update_sym()
580 si = &(((Elf32_Syminfo *)data->d_buf)[ndx]); in gelf_getsyminfo()
584 *dst = ((GElf_Syminfo *)data->d_buf)[ndx]; in gelf_getsyminfo()
614 Elf32_Syminfo * d = &(((Elf32_Syminfo *)dst->d_buf)[ndx]); in gelf_update_syminfo()
618 ((Elf64_Syminfo *)dst->d_buf)[ndx] = *((Elf64_Syminfo *)src); in gelf_update_syminfo()
648 Elf32_Dyn * d = &((Elf32_Dyn *)data->d_buf)[ndx]; in gelf_getdyn()
653 *dst = ((Elf64_Dyn *)data->d_buf)[ndx]; in gelf_getdyn()
[all …]
H A Dstrptr.c83 if (d->d_buf == 0) in elf_strptr()
87 rc = (char *)d->d_buf + off - d->d_off; in elf_strptr()
102 if (d->d_buf != 0) { in elf_strptr()
104 rc = (char *)d->d_buf + off; in elf_strptr()
H A Dupdate.c533 src.d_buf = (Elf_Void *)eh; in wrt()
537 dst.d_buf = (Elf_Void *)image; in wrt()
557 src.d_buf = (Elf_Void *)elf->ed_phdr; in wrt()
562 dst.d_buf = (Elf_Void *)(image + eh->e_phoff); in wrt()
648 dst.d_buf = (Elf_Void *)here; in wrt()
676 dst.d_buf = (Elf_Void *)(image + eh->e_shoff); in wrt()
679 assert((uintptr_t)dst.d_buf < ((uintptr_t)image + outsz)); in wrt()
682 src.d_buf = s->s_shdr; in wrt()
689 dst.d_buf = (char *)dst.d_buf + eh->e_shentsize; in wrt()
877 src.d_buf = dst.d_buf = (Elf_Void *)eh; in _elfxx_swap_wrimage()
[all …]
H A Dclscook.c175 d->db_data.d_buf = 0; in _elf_cookscn()
252 src.d_buf = (Elf_Void *)elf->ed_ident; in _elf_ehdr()
256 dst.d_buf = (Elf_Void *)elf->ed_ehdr; in _elf_ehdr()
333 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_phoff); in _elf_phdr()
337 dst.d_buf = elf->ed_phdr; in _elf_phdr()
386 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_shoff); in _elf_shdr()
390 dst.d_buf = (Elf_Void *)&sh; in _elf_shdr()
421 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_shoff); in _elf_shdr()
425 dst.d_buf = (Elf_Void *)elf->ed_shdr; in _elf_shdr()
H A Dgetdata.c216 src.d_buf = (Elf_Void *)(elf->ed_ident + d->db_off); in _elf_locked_getdata()
261 d->db_data.d_buf = (Elf_Void *)(elf->ed_ident + in _elf_locked_getdata()
263 if (((uintptr_t)d->db_data.d_buf in _elf_locked_getdata()
267 d->db_data.d_buf = 0; in _elf_locked_getdata()
277 d->db_data.d_buf = d->db_buf; in _elf_locked_getdata()
H A Drawdata.c112 raw->db_data.d_buf = (Elf_Void *)(elf->ed_raw + d->db_off); in elf_rawdata()
125 raw->db_data.d_buf = raw->db_buf; in elf_rawdata()
/titanic_41/usr/src/cmd/sgs/librtld/common/
H A Dsyms.c55 syms = (Sym *)_cache->c_data->d_buf; in update_sym()
58 strs = (char *)cache[shdr->sh_link].c_data->d_buf; in update_sym()
91 info = (Syminfo *)_cache->c_data->d_buf; in syminfo()
H A Drelocate.c69 rel = (Rel *)_cache->c_data->d_buf; in count_reloc()
84 syms = (Sym *)__cache->c_data->d_buf; in count_reloc()
87 strs = (const char *)__cache->c_data->d_buf; in count_reloc()
437 rel = (Rel *)_icache->c_data->d_buf;
511 if (ircache->c_data->d_buf)
512 iaddr = (uchar_t *)ircache->c_data->d_buf + off;
515 oaddr = (uchar_t *)orcache->c_data->d_buf + off;
/titanic_41/usr/src/tools/ctf/cvt/
H A Doutput.c258 curfile = (char *)strdata->d_buf + sym.st_name; in check_for_weak()
367 match.iim_name = (char *)strdata->d_buf + sym.st_name; in sort_iidescs()
405 smatch.iim_name = (char *)strdata->d_buf + ssym.st_name; in sort_iidescs()
570 ddata->d_buf = xmalloc(ddata->d_size + shdr.sh_size + in write_file()
572 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); in write_file()
573 strcpy((caddr_t)ddata->d_buf + shdr.sh_size, in write_file()
588 ddata->d_buf = xmalloc(shdr.sh_size); in write_file()
589 bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); in write_file()
642 ddata->d_buf = ctfdata; in write_file()
/titanic_41/usr/src/cmd/sgs/elfedit/common/
H A Dutil_machelf.c216 Sym *sym = (Sym *) symsec->sec_data->d_buf; in elfedit_name_to_symndx()
381 *cap = (Cap *) cache->sec_data->d_buf; in elfedit_sec_getcap()
420 *dyn = (Dyn *) cache->sec_data->d_buf; in elfedit_sec_getdyn()
461 *syminfo = (Syminfo *) cache->sec_data->d_buf; in elfedit_sec_getsyminfo()
608 *sym = (Sym *) symsec->sec_data->d_buf; in elfedit_sec_getsymtab()
674 *xshndx = (Word *) xshndxsec->sec_data->d_buf; in elfedit_sec_getxshndx()
735 *versym = (Versym *) versymsec->sec_data->d_buf; in elfedit_sec_getversym()
828 s = (char *)sec->sec_data->d_buf; in elfedit_sec_findstr()
832 *ret_offset = s - (char *)sec->sec_data->d_buf; in elfedit_sec_findstr()
869 Dyn *dyn = (Dyn *) dynsec->sec_data->d_buf; in elfedit_dynstr_getpad()
[all …]
/titanic_41/usr/src/lib/libtnfctl/
H A Dtraverse.c189 sym_table = (Elf3264_Sym *) sym_data->d_buf; in _tnfctl_traverse_rela()
210 str_table = (char *) str_data->d_buf; in _tnfctl_traverse_rela()
219 ptr = rel_data->d_buf; in _tnfctl_traverse_rela()
296 syms = data->d_buf; in _tnfctl_traverse_dynsym()
/titanic_41/usr/src/cmd/sgs/prof/common/
H A DsymintLoad.c176 (void) memcpy(symlist, symdat_aux_p->d_buf, in _symintLoad()
182 (void) memcpy(symlist, symdat_pri_p->d_buf, symdat_pri_p->d_size); in _symintLoad()
H A DsymintOpen.c195 pfile_p->pf_snmdat_p->d_buf)); in _symintOpen()
207 if (pfile_p->pf_snmdat_p->d_buf == NULL) in _symintOpen()
218 char *shdnms_p = (char *)pfile_p->pf_snmdat_p->d_buf; in _symintOpen()
/titanic_41/usr/src/cmd/sgs/elfwrap/common/
H A Delfwrap.c323 data->d_buf = outsec->os_addr; in output()
334 data->d_buf = 0; in output()
345 data->d_buf = 0; in output()
416 symtab = (Sym *)outsec->os_data->d_buf; in output()
420 shstrtab = (char *)outsec->os_data->d_buf; in output()
423 strtab = (char *)outsec->os_data->d_buf; in output()
/titanic_41/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c212 strs = (char *)strsec->c_data->d_buf; in string()
330 (cache[ndx].c_data->d_buf == NULL)) { in stringtbl()
411 syms = (Sym *)symtab->c_data->d_buf; in symlookup()
549 uchar_t *data = (uchar_t *)(_cache->c_data->d_buf); in unwind_eh_frame()
803 ent = (exception_range_entry *)(_cache->c_data->d_buf); in unwind_exception_ranges()
1000 state->sym = (Sym *)state->seccache->c_data->d_buf; in init_symtbl_state()
1051 state->shxndx.data = _cache->c_data->d_buf; in symbols_getxindex()
1315 Cap *cap = (Cap *)ccache->c_data->d_buf; in cap_section()
1358 capinfo = cicache->c_data->d_buf; in cap_section()
1411 strs = (const char *)strcache->c_data->d_buf; in cap_section()
[all …]
H A Dfake_shdr.c321 if (sinfo->data->d_buf != NULL) in sinfo_free()
322 free(sinfo->data->d_buf); in sinfo_free()
546 data.d_buf = buf; in xlate_data()
1009 sec->data->d_buf = NULL; in get_data()
1013 if ((sec->data->d_buf = malloc(sec->size)) == NULL) { in get_data()
1024 (read_data(fstate, sec->shdr->sh_offset, sec->data->d_buf, in get_data()
1030 bzero(read_bytes + (char *)sec->data->d_buf, zero_bytes); in get_data()
1214 if ((sec.dyn.type == SINFO_T_DYN) && (sec.dyn.data->d_buf != NULL)) { in fake_shdr_cache()
1216 for (dyn = sec.dyn.data->d_buf; dyn->d_tag != DT_NULL; dyn++) { in fake_shdr_cache()
1550 if (_cache->c_data->d_buf != NULL) in fake_shdr_cache_free()
[all …]
/titanic_41/usr/src/uts/common/zmod/
H A Ddeflate.h238 ushf *d_buf; member
310 s->d_buf[s->last_lit] = 0; \
318 s->d_buf[s->last_lit] = dist; \
/titanic_41/usr/src/cmd/sgs/libld/common/
H A Dupdate.c240 symtab = (Sym *)ofl->ofl_ossymtab->os_outdata->d_buf; in update_osym()
244 (Word *)ofl->ofl_ossymshndx->os_outdata->d_buf; in update_osym()
247 dynsym = (Sym *)ofl->ofl_osdynsym->os_outdata->d_buf; in update_osym()
254 ldynsym = (Sym *)ofl->ofl_osldynsym->os_outdata->d_buf; in update_osym()
267 ofl->ofl_osdynsymsort->os_outdata->d_buf; in update_osym()
272 ofl->ofl_osdyntlssort->os_outdata->d_buf; in update_osym()
280 hashtab = (Word *)(ofl->ofl_oshash->os_outdata->d_buf); in update_osym()
287 (Word *)ofl->ofl_osdynshndx->os_outdata->d_buf; in update_osym()
290 (Word *)ofl->ofl_osldynshndx->os_outdata->d_buf; in update_osym()
309 versym = (Versym *)ofl->ofl_osversym->os_outdata->d_buf; in update_osym()
[all …]
H A Dmachrel.intel.c173 pltent = (uchar_t *)(ofl->ofl_osplt->os_outdata->d_buf) + plt_off; in plt_entry()
174 gotent = (uchar_t *)(ofl->ofl_osgot->os_outdata->d_buf) + got_off; in plt_entry()
266 ((uchar_t *)(orsp->rel_isdesc->is_indata->d_buf) + in ld_perform_outreloc()
353 addr += (uintptr_t)RELAUX_GET_OSDESC(orsp)->os_outdata->d_buf; in ld_perform_outreloc()
358 relbits = (char *)relosp->os_outdata->d_buf; in ld_perform_outreloc()
449 (uintptr_t)RELAUX_GET_OSDESC(arsp)->os_outdata->d_buf); in tls_fixups()
809 arsp->rel_isdesc->is_indata->d_buf + in ld_do_activerelocs()
942 R2addr = R1addr + (uintptr_t)osp->os_outdata->d_buf; in ld_do_activerelocs()
1026 if (arsp->rel_isdesc->is_indata->d_buf == 0) { in ld_do_activerelocs()
1046 addr += (uintptr_t)osp->os_outdata->d_buf; in ld_do_activerelocs()
[all …]
H A Dgroups.c198 sym = (Sym *)isc->is_indata->d_buf; in ld_group_process()
214 str = (char *)isc->is_indata->d_buf; in ld_group_process()
240 gd.gd_data = gisc->is_indata->d_buf; in ld_group_process()
H A Dunwind.c384 data = isp->is_indata->d_buf; in ld_unwind_make_hdr()
444 if ((elfdata->d_buf = libld_calloc(size, 1)) == NULL) in ld_unwind_make_hdr()
503 hdrdata = hdrosp->os_outdata->d_buf; in ld_unwind_populate_hdr()
552 data = osp->os_outdata->d_buf; in ld_unwind_populate_hdr()
/titanic_41/usr/src/cmd/sgs/libelf/demo/
H A Dacom.c99 data->d_buf = (void *)CommentStr; in update_comment()
143 data->d_buf = (void *)comment; in update_comment()
/titanic_41/usr/src/cmd/sgs/pvs/common/
H A Dpvs.c481 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in sym_local()
558 GElf_Verneed *vnd = need->c_data->d_buf; in gvers_need()
578 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in gvers_need()
809 GElf_Verdef *vdf = def->c_data->d_buf; in gvers_def()
830 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in gvers_def()
1147 names = data->d_buf; in main()
1241 (GElf_Versym *)_cache_sym->c_data->d_buf; in main()
1246 (const char *)cache[shdr.sh_link].c_data->d_buf; in main()

1234