/titanic_41/usr/src/ucblib/libucb/port/gen/ |
H A D | nlist.c | 146 Elf32_Shdr *symhdr; /* section table entry for symtab */ in _elf_nlist() local 186 symhdr = (Elf32_Shdr *)secdata->d_buf; in _elf_nlist() 187 for (i = 0; i < (Elf32_Word)ehdr->e_shnum; i++, symhdr++) in _elf_nlist() 188 if (symhdr->sh_type == SHT_SYMTAB) in _elf_nlist() 191 if ((symhdr->sh_type != SHT_SYMTAB) || in _elf_nlist() 192 (symhdr->sh_link >= ehdr->e_shnum)) { in _elf_nlist() 200 if ((symdata = elf_read(fd, (long)symhdr->sh_offset, in _elf_nlist() 201 (size_t)symhdr->sh_size, in _elf_nlist() 202 (size_t)((symhdr->sh_size / symhdr->sh_entsize) * in _elf_nlist() 213 strhdr = strhdr + symhdr->sh_link; in _elf_nlist()
|
/titanic_41/usr/src/tools/chk4ubin/ |
H A D | chk4ubin.c | 131 GElf_Shdr symhdr; in chk4ubin() local 159 gelf_getshdr(symscn, &symhdr); in chk4ubin() 160 switch (symhdr.sh_type) { in chk4ubin() 163 symtab_size = symhdr.sh_size; in chk4ubin() 164 strscn = elf_getscn(elf, symhdr.sh_link); in chk4ubin()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | ksyms_snapshot.c | 84 Shdr *symhdr = base; in ksyms_walk_one() local 85 Shdr *strhdr = symhdr + symhdr->sh_link; in ksyms_walk_one() 86 size_t symsize = symhdr->sh_entsize; in ksyms_walk_one() 87 size_t nsyms = symhdr->sh_size / symsize; in ksyms_walk_one() 92 Sym *sym = (Sym *)(symhdr->sh_addr + i * symsize); in ksyms_walk_one()
|
/titanic_41/usr/src/uts/i86xpv/os/ |
H A D | xpv_panic.c | 897 mp->symhdr = shp; in init_xen_module() 951 if ((mp->symhdr != NULL) && (mp->symhdr->sh_link < mp->hdr.e_shnum)) { in init_xen_module() 953 (mp->shdrs + mp->symhdr->sh_link * mp->hdr.e_shentsize); in init_xen_module() 954 mp->nsyms = mp->symhdr->sh_size / mp->symhdr->sh_entsize; in init_xen_module() 957 mp->symsize = mp->symhdr->sh_size + in init_xen_module() 961 mp->strings = (char *)(mp->symtbl + mp->symhdr->sh_size); in init_xen_module() 964 mp->symhdr->sh_size, mp->symhdr->sh_offset) < 0) || in init_xen_module()
|
/titanic_41/usr/src/uts/common/krtld/ |
H A D | kobj.c | 743 mp->symhdr = kobj_zalloc(sizeof (Shdr), KM_WAIT); in load_exec() 748 mp->symhdr->sh_type = SHT_SYMTAB; in load_exec() 758 mp->symhdr->sh_addr = dyn->d_un.d_ptr; in load_exec() 772 mp->symhdr->sh_entsize = dyn->d_un.d_val; in load_exec() 833 mp->symhdr->sh_size = mp->nsyms * mp->symhdr->sh_entsize; in load_exec() 868 sp = (Sym *)(mp->symtbl + i * mp->symhdr->sh_entsize); in load_exec() 931 mp->symhdr = shp; in load_linker() 935 mp->nsyms = mp->symhdr->sh_size / mp->symhdr->sh_entsize; in load_linker() 938 (mp->shdrs + mp->symhdr->sh_link * mp->hdr.e_shentsize); in load_linker() 942 mp->symsize = mp->symhdr->sh_size + mp->strhdr->sh_size + sizeof (int) + in load_linker() [all …]
|
H A D | kobj_kdi.c | 185 mp1->symhdr != mp2->symhdr || mp1->strhdr != mp2->strhdr || in kobj_kdi_mod_haschanged()
|
/titanic_41/usr/src/uts/intel/dtrace/ |
H A D | fbt.c | 154 Shdr *symhdr = mp->symhdr; in fbt_provide_module() local 186 if (str == NULL || symhdr == NULL || symhdr->sh_addr == NULL) { in fbt_provide_module() 194 symsize = symhdr->sh_entsize; in fbt_provide_module() 206 Sym *sym = (Sym *)(symhdr->sh_addr + i * symsize); in fbt_provide_module()
|
/titanic_41/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_module_load.c | 153 if ((mp = modp->mod_mp) == NULL || mp->symhdr == NULL || in kmdb_module_loaded() 176 kmc->kmc_symtab = mdb_gelf_symtab_create_raw(&kmc->kmc_ehdr, mp->symhdr, in kmdb_module_loaded() 376 &kmc->kmc_ehdr, mp->symhdr, mp->symtbl, mp->strhdr, in kmdb_module_sync()
|
H A D | kmdb_ctf_open.c | 90 mp->symhdr, mp->strings, mp->strhdr, errp)) == NULL) in mdb_ctf_open()
|
H A D | kmdb_kvm.c | 719 if (mod->symhdr != NULL && mod->strhdr != NULL && mod->symtbl != NULL && in kmt_mod_create() 724 mod->symhdr, mod->symtbl, mod->strhdr, mod->strings, in kmt_mod_create() 731 (uintptr_t)mod->symhdr) != sizeof (Shdr) || in kmt_mod_create()
|
/titanic_41/usr/src/uts/intel/ia32/krtld/ |
H A D | kobj_reloc.c | 178 (mp->symtbl+(stndx * mp->symhdr->sh_entsize)); in do_relocate() 203 (mp->symtbl+(stndx * mp->symhdr->sh_entsize)); in do_relocate()
|
/titanic_41/usr/src/uts/intel/amd64/krtld/ |
H A D | kobj_reloc.c | 182 (mp->symtbl+(stndx * mp->symhdr->sh_entsize)); in do_relocate() 208 (mp->symtbl+(stndx * mp->symhdr->sh_entsize)); in do_relocate()
|
/titanic_41/usr/src/uts/sparc/krtld/ |
H A D | kobj_reloc.c | 231 (mp->symtbl+(stndx * mp->symhdr->sh_entsize)); in do_relocate() 259 (mp->symtbl+(stndx * mp->symhdr->sh_entsize)); in do_relocate()
|
/titanic_41/usr/src/uts/common/ctf/ |
H A D | ctf_mod.c | 141 symsect.cts_size = mp->symhdr->sh_size; in ctf_modopen()
|
/titanic_41/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_kvm.c | 123 Shdr symhdr, strhdr; in kt_load_modules() local 177 if (kmod.symspace == NULL || kmod.symhdr == NULL || in kt_load_modules() 187 if (mdb_tgt_vread(t, &symhdr, sizeof (Shdr), in kt_load_modules() 188 (uintptr_t)kmod.symhdr) == -1) { in kt_load_modules() 211 kmod.symsize = symhdr.sh_size + strhdr.sh_size; in kt_load_modules() 220 kmod.strings = kmod.symspace + symhdr.sh_size; in kt_load_modules() 243 km->km_symtab_hdr = symhdr; in kt_load_modules()
|
H A D | mdb_ctf.c | 1656 Shdr *symhdr, const void *str_va, Shdr *strhdr, int *errp) in mdb_ctf_bufopen() argument 1669 symtab.cts_type = symhdr->sh_type; in mdb_ctf_bufopen() 1670 symtab.cts_flags = symhdr->sh_flags; in mdb_ctf_bufopen() 1672 symtab.cts_size = symhdr->sh_size; in mdb_ctf_bufopen() 1673 symtab.cts_entsize = symhdr->sh_entsize; in mdb_ctf_bufopen() 1674 symtab.cts_offset = symhdr->sh_offset; in mdb_ctf_bufopen()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | kobj.h | 60 Shdr *symhdr, *strhdr; member
|
/titanic_41/usr/src/uts/sparc/dtrace/ |
H A D | fbt.c | 1004 Shdr *symhdr = mp->symhdr; in fbt_provide_module() local 1043 if (str == NULL || symhdr == NULL || symhdr->sh_addr == NULL) { in fbt_provide_module() 1051 symsize = symhdr->sh_entsize; in fbt_provide_module() 1092 Sym *sym = (Sym *)(symhdr->sh_addr + i * symsize); in fbt_provide_module()
|
/titanic_41/usr/src/uts/common/fs/objfs/ |
H A D | objfs_data.c | 311 size = mp->symhdr->sh_size; in sect_size()
|
/titanic_41/usr/src/cmd/mdb/intel/modules/mdb_kb/ |
H A D | mdb_kb.c | 823 if (!xkb_read_word(xkb, (uintptr_t)module->symhdr + in xkb_read_module() 831 if (!xkb_read_word(xkb, (uintptr_t)module->symhdr + in xkb_read_module()
|
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kmem.c | 2521 if (mdb_vread(&shdr, sizeof (shdr), (uintptr_t)mod.symhdr) == -1) { in whatis_walk_modctl()
|