Lines Matching refs:ddata
48 Elf_Data *sdata, *ddata; in ctf_write_elf() local
205 if ((ddata = elf_newdata(dscn)) == NULL) { in ctf_write_elf()
209 bcopy(sdata, ddata, sizeof (Elf_Data)); in ctf_write_elf()
214 strdatasz = ddata->d_size + shdr.sh_size + in ctf_write_elf()
216 ddata->d_buf = strdatabuf = ctf_alloc(strdatasz); in ctf_write_elf()
217 if (ddata->d_buf == NULL) { 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()
226 ddata->d_size += seclen + 1; in ctf_write_elf()
238 ddata->d_buf = symdatabuf = ctf_alloc(symdatasz); in ctf_write_elf()
239 if (ddata->d_buf == NULL) { in ctf_write_elf()
243 (void) bcopy(sdata->d_buf, ddata->d_buf, shdr.sh_size); in ctf_write_elf()
249 (void) gelf_getsym(ddata, i, &sym); in ctf_write_elf()
259 if (gelf_update_sym(ddata, i, &sym) == in ctf_write_elf()
308 if ((ddata = elf_newdata(dscn)) == NULL) { in ctf_write_elf()
325 ddata->d_buf = cdata; in ctf_write_elf()
326 ddata->d_size = elfsize; in ctf_write_elf()
328 ddata->d_buf = (void *)fp->ctf_base; in ctf_write_elf()
329 ddata->d_size = fp->ctf_size; in ctf_write_elf()
331 ddata->d_align = shdr.sh_addralign; in ctf_write_elf()