Home
last modified time | relevance | path

Searched refs:phdrbase (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c193 caddr_t phdrbase = NULL; in mapexec_brand() local
213 (error = getelfphdr(vp, CRED(), ehdr, nphdrs, &phdrbase, in mapexec_brand()
219 if ((len = elfsize(ehdr, nphdrs, phdrbase, &lddata)) == 0) { in mapexec_brand()
221 kmem_free(phdrbase, phdrsize); in mapexec_brand()
227 if (error = mapelfexec(vp, ehdr, nphdrs, phdrbase, &uphdr, &dynphdr, in mapexec_brand()
233 kmem_free(phdrbase, phdrsize); in mapexec_brand()
259 kmem_free(phdrbase, phdrsize); in mapexec_brand()
268 caddr_t phdrbase = NULL; in elfexec() local
328 (error = getelfphdr(vp, CRED(), ehdrp, nphdrs, &phdrbase, in elfexec()
391 phdrp = (Phdr *)phdrbase; in elfexec()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dfastboot.c363 uint8_t *phdrbase; in fastboot_elf64_find_dboot_load_offset() local
369 phdrbase = (uint8_t *)img + ehdr->e_phoff; in fastboot_elf64_find_dboot_load_offset()
372 phdr = (Elf64_Phdr *)(phdrbase + ehdr->e_phentsize * i); in fastboot_elf64_find_dboot_load_offset()
400 uint8_t *phdrbase; in fastboot_elf32_find_loadables() local
408 phdrbase = (uint8_t *)img + ehdr->e_phoff; in fastboot_elf32_find_loadables()
411 phdr = (Elf32_Phdr *)(phdrbase + ehdr->e_phentsize * i); in fastboot_elf32_find_loadables()
/illumos-gate/usr/src/uts/common/os/
H A Dmmapobj.c1302 calc_loadable(Ehdr *ehdrp, caddr_t phdrbase, int nphdrs, size_t *len, in calc_loadable() argument
1331 STRUCT_SET_HANDLE(mph, model, (struct myphdr *)phdrbase); in calc_loadable()
1535 process_phdrs(Ehdr *ehdrp, caddr_t phdrbase, int nphdrs, mmapobj_result_t *mrp, in process_phdrs() argument
1566 STRUCT_SET_HANDLE(mph, model, (struct myphdr *)phdrbase); in process_phdrs()
1632 ret = calc_loadable(ehdrp, phdrbase, nphdrs, &len, in process_phdrs()
1772 STRUCT_SET_HANDLE(mph, model, (struct myphdr *)phdrbase); in process_phdrs()
/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj.c572 caddr_t phdrbase; in synthetic_bootaux() local
600 phdrbase = kobj_alloc(n, KM_WAIT | KM_TMP); in synthetic_bootaux()
602 if (kobj_read_file(file, phdrbase, n, ehdr.e_phoff) < 0) { in synthetic_bootaux()
607 bootaux[BA_PHDR].ba_ptr = phdrbase; in synthetic_bootaux()
615 Phdr *phdr = (Phdr *)(phdrbase + ehdr.e_phentsize * i); in synthetic_bootaux()