Lines Matching refs:ctf_base
322 fp->ctf_buf = base + (fp->ctf_buf - fp->ctf_base); in ctf_set_base()
323 fp->ctf_base = base; in ctf_set_base()
403 unsigned char *ctf_base, *old_ctf_base = (unsigned char *) fp->ctf_dynbase; in upgrade_types_v1() local
449 if ((ctf_base = malloc (fp->ctf_size + increase)) == NULL) in upgrade_types_v1()
455 memcpy (ctf_base, fp->ctf_buf, cth->cth_typeoff); in upgrade_types_v1()
456 memcpy (ctf_base + cth->cth_stroff + increase, in upgrade_types_v1()
459 memset (ctf_base + cth->cth_typeoff, 0, cth->cth_stroff - cth->cth_typeoff in upgrade_types_v1()
465 fp->ctf_base = ctf_base; in upgrade_types_v1()
466 fp->ctf_buf = ctf_base; in upgrade_types_v1()
467 fp->ctf_dynbase = ctf_base; in upgrade_types_v1()
468 ctf_set_base (fp, cth, ctf_base); in upgrade_types_v1()
1438 if ((fp->ctf_base = malloc (fp->ctf_size)) == NULL) in ctf_bufopen_internal()
1443 fp->ctf_dynbase = fp->ctf_base; in ctf_bufopen_internal()
1449 fp->ctf_buf = fp->ctf_base; in ctf_bufopen_internal()
1451 if ((rc = uncompress (fp->ctf_base, &dstlen, src, srclen)) != Z_OK) in ctf_bufopen_internal()
1469 if ((fp->ctf_base = malloc (fp->ctf_size)) == NULL) in ctf_bufopen_internal()
1474 fp->ctf_dynbase = fp->ctf_base; in ctf_bufopen_internal()
1475 memcpy (fp->ctf_base, ((unsigned char *) ctfsect->cts_data) + hdrsz, in ctf_bufopen_internal()
1477 fp->ctf_buf = fp->ctf_base; in ctf_bufopen_internal()
1484 fp->ctf_base = (unsigned char *) ctfsect->cts_data; in ctf_bufopen_internal()
1486 fp->ctf_buf = fp->ctf_base + hdrsz; in ctf_bufopen_internal()
1548 ctf_set_base (fp, hp, fp->ctf_base); in ctf_bufopen_internal()
1552 ctf_set_base (fp, hp, fp->ctf_base); in ctf_bufopen_internal()