Home
last modified time | relevance | path

Searched refs:symhdr (Results 1 – 21 of 21) sorted by relevance

/titanic_41/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c146 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 Dchk4ubin.c131 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 Dksyms_snapshot.c84 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 Dxpv_panic.c897 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 Dkobj.c743 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 Dkobj_kdi.c185 mp1->symhdr != mp2->symhdr || mp1->strhdr != mp2->strhdr || in kobj_kdi_mod_haschanged()
/titanic_41/usr/src/uts/intel/dtrace/
H A Dfbt.c154 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 Dkmdb_module_load.c153 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 Dkmdb_ctf_open.c90 mp->symhdr, mp->strings, mp->strhdr, errp)) == NULL) in mdb_ctf_open()
H A Dkmdb_kvm.c719 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 Dkobj_reloc.c178 (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 Dkobj_reloc.c182 (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 Dkobj_reloc.c231 (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 Dctf_mod.c141 symsect.cts_size = mp->symhdr->sh_size; in ctf_modopen()
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb_kvm.c123 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 Dmdb_ctf.c1656 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 Dkobj.h60 Shdr *symhdr, *strhdr; member
/titanic_41/usr/src/uts/sparc/dtrace/
H A Dfbt.c1004 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 Dobjfs_data.c311 size = mp->symhdr->sh_size; in sect_size()
/titanic_41/usr/src/cmd/mdb/intel/modules/mdb_kb/
H A Dmdb_kb.c823 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 Dkmem.c2521 if (mdb_vread(&shdr, sizeof (shdr), (uintptr_t)mod.symhdr) == -1) { in whatis_walk_modctl()