Elf_Phdr
const Elf_Phdr *dlpi_phdr; /* pointer to module's phdr */
const Elf_Phdr *phdr = NULL;
const Elf_Phdr *phlimit = phdr + phnum, *dynphdr = NULL;
static const Elf_Phdr *dlpi_phdr;
const Elf_Phdr *phdr = (const Elf_Phdr *)dlpi_phdr;
const Elf_Phdr *phlimit = phdr + dlpi_phnum;
const Elf_Phdr *phdr = data->dlpi_phdr;
const Elf_Phdr *phlimit = data->dlpi_phdr + data->dlpi_phnum;
const Elf_Phdr *ph = obj->phdr;
const Elf_Phdr * const phlimit = ph + obj->phsize / sizeof(*ph);
_rtld_espresso_fixup(const char *path, int fd, Elf_Ehdr *ehdr, Elf_Phdr *phdr,
Elf_Phdr *phdr, caddr_t data_addr, size_t data_size, int data_prot)
_rtld_digest_phdr(const Elf_Phdr *phdr, int phnum, caddr_t entry)
const Elf_Phdr *phlimit = phdr + phnum;
const Elf_Phdr *ph;
assert(ehdr->e_phentsize == sizeof(Elf_Phdr));
assert(ehdr->e_phoff + ehdr->e_phnum * sizeof(Elf_Phdr) <=
phdr = (Elf_Phdr *) ((caddr_t)ehdr + ehdr->e_phoff);
phdr = (Elf_Phdr *) ((caddr_t)ehdr + ehdr->e_phoff);
Elf_Phdr *buf = xmalloc(phsize);
Elf_Phdr *phdr;
Elf_Phdr *phtls;
Elf_Phdr *phlimit;
Elf_Phdr **segs = NULL;
const Elf_Phdr *phdr;
phdr = (const Elf_Phdr *) pAUX_phdr->a_v;
assert(pAUX_phent->a_v == sizeof(Elf_Phdr));
_rtld_objself.phdr = (Elf_Phdr *)((char *)mapbase + ehdr->e_phoff);
const Elf_Phdr *phdr; /* Program header (may be xmalloc'ed) */
Obj_Entry *_rtld_digest_phdr(const Elf_Phdr *, int, caddr_t);
int _rtld_map_segment_fixup(const char *, int, Elf_Ehdr *, Elf_Phdr *,
Elf_Phdr *ph = _ph;
Elf_Phdr *ph;
_eh.e_phentsize != sizeof(Elf_Phdr)) {
if ((_ph = static_cast<Elf_Phdr *>(malloc(sz))) == NULL) {
Elf_Phdr *_ph;
Elf_Phdr *phtbl = NULL;
if ((phtbl = (Elf_Phdr *)alloc(sizeof(*phtbl) * elf->e_phnum)) == NULL ||
if (read(fd, (void *)phtbl, sizeof(Elf_Phdr) * elf->e_phnum)
!= (int)(sizeof(Elf_Phdr) * elf->e_phnum)) {
Elf_Phdr *ph;
phsize = eh->e_phnum * sizeof(Elf_Phdr);
ph = (Elf_Phdr *)kmem_alloc(phsize, KM_SLEEP);
Elf_Phdr *ph;
phsize = eh->e_phnum * sizeof(Elf_Phdr);
ph = (Elf_Phdr *)malloc(phsize, M_TEMP, M_WAITOK);
Elf_Phdr *ephp = &ph[i];
STATIC void kloader_load_segment(Elf_Phdr *);
Elf_Phdr *ph, *p;
kloader_load_segment(Elf_Phdr *p)
Elf_Phdr *psections;
ehdr.e_phentsize = sizeof(Elf_Phdr);
Elf_Phdr phdr;
Elf_Phdr *psections;
elf_load_psection(struct exec_vmcmd_set *, struct vnode *, const Elf_Phdr *,
elf_placedynexec(struct exec_package *epp, Elf_Ehdr *eh, Elf_Phdr *ph)
const Elf_Phdr *ph, Elf_Addr *addr, u_long *size, int flags)
Elf_Phdr *ph = NULL;
const Elf_Phdr *base_ph;
const Elf_Phdr *last_ph;
phsize = eh.e_phnum * sizeof(Elf_Phdr);
Elf_Phdr *ph, *pp;
phsize = eh->e_phnum * sizeof(Elf_Phdr);
Elf_Phdr *ph;
phsize = eh->e_phnum * sizeof(Elf_Phdr);
ksyms_hdr.kh_ehdr.e_phentsize = sizeof(Elf_Phdr);
internalize_phdr(Elf_Byte bo, Elf_Phdr *phdr)
Elf_Phdr *phdr;
sz = elf->e_phnum * sizeof(Elf_Phdr);
const Elf_Phdr *hdr = info->dlpi_phdr;
const Elf_Phdr *last_hdr = hdr + info->dlpi_phnum;
Elf_Phdr kh_phdr[NPRGHDR];
const Elf_Phdr *phdr;
const Elf_Phdr *phlimit, *dynphdr;
phdr_size = sizeof(Elf_Phdr) * nphdr;
phdrp = (const Elf_Phdr *)&mappedfile[phdr_off];
const Elf_Phdr *phdrp;