Lines Matching refs:ctf_base
350 fp->ctf_buf = base + (fp->ctf_buf - fp->ctf_base); in ctf_set_base()
351 fp->ctf_base = base; in ctf_set_base()
431 unsigned char *ctf_base, *old_ctf_base = (unsigned char *) fp->ctf_dynbase; in upgrade_types_v1() local
477 if ((ctf_base = malloc (fp->ctf_size + increase)) == NULL) in upgrade_types_v1()
483 memcpy (ctf_base, fp->ctf_buf, cth->cth_typeoff); in upgrade_types_v1()
484 memcpy (ctf_base + cth->cth_stroff + increase, in upgrade_types_v1()
487 memset (ctf_base + cth->cth_typeoff, 0, cth->cth_stroff - cth->cth_typeoff in upgrade_types_v1()
493 fp->ctf_base = ctf_base; in upgrade_types_v1()
494 fp->ctf_buf = ctf_base; in upgrade_types_v1()
495 fp->ctf_dynbase = ctf_base; in upgrade_types_v1()
496 ctf_set_base (fp, cth, ctf_base); in upgrade_types_v1()
1518 if ((fp->ctf_base = malloc (fp->ctf_size)) == NULL) in ctf_bufopen_internal()
1523 fp->ctf_dynbase = fp->ctf_base; in ctf_bufopen_internal()
1529 fp->ctf_buf = fp->ctf_base; in ctf_bufopen_internal()
1531 if ((rc = uncompress (fp->ctf_base, &dstlen, src, srclen)) != Z_OK) in ctf_bufopen_internal()
1562 if ((fp->ctf_base = malloc (fp->ctf_size)) == NULL) in ctf_bufopen_internal()
1567 fp->ctf_dynbase = fp->ctf_base; in ctf_bufopen_internal()
1568 memcpy (fp->ctf_base, ((unsigned char *) ctfsect->cts_data) + hdrsz, in ctf_bufopen_internal()
1570 fp->ctf_buf = fp->ctf_base; in ctf_bufopen_internal()
1577 fp->ctf_base = (unsigned char *) ctfsect->cts_data; in ctf_bufopen_internal()
1579 fp->ctf_buf = fp->ctf_base + hdrsz; in ctf_bufopen_internal()
1647 ctf_set_base (fp, hp, fp->ctf_base); in ctf_bufopen_internal()
1651 ctf_set_base (fp, hp, fp->ctf_base); in ctf_bufopen_internal()