/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/ |
H A D | krtld.c | 229 Shdr *shdrs; in modhdrs() local 247 shdrs = mdb_alloc(nbytes, UM_SLEEP | UM_GC); in modhdrs() 248 mdb_vread(shdrs, nbytes, (uintptr_t)mod.shdrs); in modhdrs() 251 dump_shdr(&shdrs[i], i); in modhdrs()
|
/illumos-gate/usr/src/psm/stand/boot/common/ |
H A D | readfile.c | 984 caddr_t shdrs = NULL; in iload32() local 1016 if ((shdrs = (caddr_t)kmem_alloc(size, 0)) == NULL) { in iload32() 1024 xread(fd, shdrs, size) != size) { in iload32() 1029 AUX(*avp, AT_SUN_LDSHDR, shdrs); in iload32() 1038 sp = (Elf32_Shdr *)(shdrs + (i*ehdr->e_shentsize)); in iload32() 1112 if (shdrs) in iload32() 1113 kmem_free(shdrs, size); in iload32() 1133 caddr_t shdrs = NULL; in iload64() local 1163 if ((shdrs = (caddr_t)kmem_alloc(size, 0)) == NULL) { in iload64() 1171 xread(fd, shdrs, size) != size) { in iload64() [all …]
|
/illumos-gate/usr/src/uts/sparc/krtld/ |
H A D | kobj_reloc.c | 140 shp = (Shdr *)mp->shdrs; in do_relocate() 294 (mp->shdrs + shn * mp->hdr.e_shentsize); in do_relocations() 316 (mp->shdrs + rshp->sh_info * mp->hdr.e_shentsize); in do_relocations()
|
H A D | kobj_isa.c | 112 shp = (Shdr *)(mp->shdrs + shn * mp->hdr.e_shentsize); in get_progbits_size()
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | xpv_panic.c | 851 mp->shdrs = kmem_zalloc(n, KM_SLEEP); in init_xen_module() 852 if (kobj_read_file(file, mp->shdrs, n, mp->hdr.e_shoff) < 0) in init_xen_module() 856 shp = (Shdr *)(mp->shdrs + mp->hdr.e_shstrndx * mp->hdr.e_shentsize); in init_xen_module() 868 shp = (Shdr *)(mp->shdrs + shn * mp->hdr.e_shentsize); in init_xen_module() 933 (mp->shdrs + mp->symhdr->sh_link * mp->hdr.e_shentsize); in init_xen_module() 973 if (mp->shdrs != NULL) in init_xen_module() 974 kmem_free(mp->shdrs, mp->hdr.e_shentsize * mp->hdr.e_shnum); in init_xen_module()
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj.c | 725 mp->shdrs = NULL; in load_exec() 905 mp->shdrs = kobj_alloc(shsize, KM_WAIT); in load_linker() 906 bcopy(bootaux[BA_LDSHDR].ba_ptr, mp->shdrs, shsize); in load_linker() 909 shp = (Shdr *)(mp->shdrs + (i * mp->hdr.e_shentsize)); in load_linker() 928 (mp->shdrs + mp->symhdr->sh_link * mp->hdr.e_shentsize); in load_linker() 1229 mp->shdrs = kobj_alloc(n, KM_WAIT); in bind_primary() 1230 if (kobj_read_file(file, mp->shdrs, n, in bind_primary() 1547 mp->shdrs = mp->symspace; in kobj_export_ksyms() 1548 mp->symhdr = (Shdr *)mp->shdrs; in kobj_export_ksyms() 1603 shp = (Shdr *)(omp->shdrs + shn * omp->hdr.e_shentsize); in kobj_export_ksyms() [all …]
|
/illumos-gate/usr/src/uts/intel/amd64/krtld/ |
H A D | kobj_reloc.c | 303 (mp->shdrs + shn * mp->hdr.e_shentsize); in do_relocations() 326 (mp->shdrs + rshp->sh_info * mp->hdr.e_shentsize); in do_relocations()
|
H A D | kobj_isa.c | 94 shp = (Shdr *)(mp->shdrs + shn * mp->hdr.e_shentsize); in get_progbits_size()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pcore.c | 2218 GElf_Shdr *shp, *shdrs = NULL; in core_load_shdrs() local 2238 if ((shdrs = malloc(efp->e_hdr.e_shnum * sizeof (GElf_Shdr))) == NULL) { in core_load_shdrs() 2248 free(shdrs); in core_load_shdrs() 2263 core_shdr_to_gelf(p, &shdrs[i]); in core_load_shdrs() 2265 (void) memcpy(&shdrs[i], p, sizeof (GElf_Shdr)); in core_load_shdrs() 2275 shp = &shdrs[efp->e_hdr.e_shstrndx]; in core_load_shdrs() 2298 shp = &shdrs[i]; in core_load_shdrs() 2340 if (shdrs[shp->sh_link].sh_type == SHT_DYNSYM) in core_load_shdrs() 2345 shp, &shdrs[shp->sh_link]); in core_load_shdrs() 2350 free(shdrs); in core_load_shdrs()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | kobj.h | 67 char *shdrs; member
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 232 caddr_t shdrs, shp; in gelf_shdrs_init() local 250 shdrs = mdb_alloc(nbytes, UM_SLEEP); in gelf_shdrs_init() 252 if (IOP_READ(gf->gf_io, shdrs, nbytes) != nbytes) { in gelf_shdrs_init() 254 mdb_free(shdrs, nbytes); in gelf_shdrs_init() 261 shp = shdrs; in gelf_shdrs_init() 267 mdb_free(shdrs, nbytes); in gelf_shdrs_init()
|