Home
last modified time | relevance | path

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

/illumos-gate/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()
/illumos-gate/usr/src/test/util-tests/tests/ctf/
H A Dcheck-merge-static.c168 GElf_Shdr symhdr; in check_merge_static() local
175 if (gelf_getshdr(scn, &symhdr) == NULL) { in check_merge_static()
181 if (symhdr.sh_type == SHT_SYMTAB) { in check_merge_static()
198 if (symhdr.sh_link == SHN_XINDEX) { in check_merge_static()
202 nsyms = symhdr.sh_size / symhdr.sh_entsize; in check_merge_static()
218 if ((name = elf_strptr(elf, symhdr.sh_link, sym.st_name)) == in check_merge_static()
/illumos-gate/usr/src/uts/common/os/
H A Dksyms_snapshot.c82 Shdr *symhdr = base; in ksyms_walk_one() local
83 Shdr *strhdr = symhdr + symhdr->sh_link; in ksyms_walk_one()
84 size_t symsize = symhdr->sh_entsize; in ksyms_walk_one()
85 size_t nsyms = symhdr->sh_size / symsize; in ksyms_walk_one()
90 Sym *sym = (Sym *)(symhdr->sh_addr + i * symsize); in ksyms_walk_one()
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c877 mp->symhdr = shp; in init_xen_module()
931 if ((mp->symhdr != NULL) && (mp->symhdr->sh_link < mp->hdr.e_shnum)) { in init_xen_module()
933 (mp->shdrs + mp->symhdr->sh_link * mp->hdr.e_shentsize); in init_xen_module()
934 mp->nsyms = mp->symhdr->sh_size / mp->symhdr->sh_entsize; in init_xen_module()
937 mp->symsize = mp->symhdr->sh_size + in init_xen_module()
941 mp->strings = (char *)(mp->symtbl + mp->symhdr->sh_size); in init_xen_module()
944 mp->symhdr->sh_size, mp->symhdr->sh_offset) < 0) || in init_xen_module()
/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj.c732 mp->symhdr = kobj_zalloc(sizeof (Shdr), KM_WAIT); in load_exec()
737 mp->symhdr->sh_type = SHT_SYMTAB; in load_exec()
747 mp->symhdr->sh_addr = dyn->d_un.d_ptr; in load_exec()
761 mp->symhdr->sh_entsize = dyn->d_un.d_val; in load_exec()
822 mp->symhdr->sh_size = mp->nsyms * mp->symhdr->sh_entsize; in load_exec()
857 sp = (Sym *)(mp->symtbl + i * mp->symhdr->sh_entsize); in load_exec()
920 mp->symhdr = shp; in load_linker()
924 mp->nsyms = mp->symhdr->sh_size / mp->symhdr->sh_entsize; in load_linker()
927 (mp->shdrs + mp->symhdr->sh_link * mp->hdr.e_shentsize); in load_linker()
931 mp->symsize = mp->symhdr->sh_size + mp->strhdr->sh_size + sizeof (int) + in load_linker()
[all …]
H A Dkobj_kdi.c183 mp1->symhdr != mp2->symhdr || mp1->strhdr != mp2->strhdr || in kobj_kdi_mod_haschanged()
/illumos-gate/usr/src/uts/intel/dtrace/
H A Dfbt.c146 Shdr *symhdr = mp->symhdr; in fbt_provide_module() local
178 if (str == NULL || symhdr == NULL || symhdr->sh_addr == 0) { in fbt_provide_module()
186 symsize = symhdr->sh_entsize; in fbt_provide_module()
198 Sym *sym = (Sym *)(symhdr->sh_addr + i * symsize); in fbt_provide_module()
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_module_load.c151 if ((mp = modp->mod_mp) == NULL || mp->symhdr == NULL || in kmdb_module_loaded()
174 kmc->kmc_symtab = mdb_gelf_symtab_create_raw(&kmc->kmc_ehdr, mp->symhdr, in kmdb_module_loaded()
374 &kmc->kmc_ehdr, mp->symhdr, mp->symtbl, mp->strhdr, in kmdb_module_sync()
H A Dkmdb_ctf_open.c89 mp->symhdr, mp->strings, mp->strhdr, errp)) == NULL) in mdb_ctf_open()
H A Dkmdb_kvm.c717 if (mod->symhdr != NULL && mod->strhdr != NULL && mod->symtbl != NULL && in kmt_mod_create()
722 mod->symhdr, mod->symtbl, mod->strhdr, mod->strings, in kmt_mod_create()
729 (uintptr_t)mod->symhdr) != sizeof (Shdr) || in kmt_mod_create()
/illumos-gate/usr/src/uts/sparc/krtld/
H A Dkobj_reloc.c181 (mp->symtbl+(stndx * mp->symhdr->sh_entsize)); in do_relocate()
209 (mp->symtbl+(stndx * mp->symhdr->sh_entsize)); in do_relocate()
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_reloc.c196 (mp->symtbl+(stndx * mp->symhdr->sh_entsize)); in do_relocate()
222 (mp->symtbl+(stndx * mp->symhdr->sh_entsize)); in do_relocate()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_kvm.c127 Shdr symhdr, strhdr; in kt_load_modules() local
181 if (kmod.symspace == NULL || kmod.symhdr == NULL || in kt_load_modules()
191 if (mdb_tgt_vread(t, &symhdr, sizeof (Shdr), in kt_load_modules()
192 (uintptr_t)kmod.symhdr) == -1) { in kt_load_modules()
215 kmod.symsize = symhdr.sh_size + strhdr.sh_size; in kt_load_modules()
224 kmod.strings = kmod.symspace + symhdr.sh_size; in kt_load_modules()
247 km->km_symtab_hdr = symhdr; in kt_load_modules()
H A Dmdb_ctf.c1705 Shdr *symhdr, const void *str_va, Shdr *strhdr, int *errp) in mdb_ctf_bufopen() argument
1718 symtab.cts_type = symhdr->sh_type; in mdb_ctf_bufopen()
1719 symtab.cts_flags = symhdr->sh_flags; in mdb_ctf_bufopen()
1721 symtab.cts_size = symhdr->sh_size; in mdb_ctf_bufopen()
1722 symtab.cts_entsize = symhdr->sh_entsize; in mdb_ctf_bufopen()
1723 symtab.cts_offset = symhdr->sh_offset; in mdb_ctf_bufopen()
/illumos-gate/usr/src/uts/common/ctf/
H A Dctf_mod.c148 symsect.cts_size = mp->symhdr->sh_size; in ctf_modopen()
/illumos-gate/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 == 0) { 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()
/illumos-gate/usr/src/uts/common/sys/
H A Dkobj.h69 Shdr *symhdr, *strhdr; member
/illumos-gate/usr/src/uts/common/fs/objfs/
H A Dobjfs_data.c309 size = mp->symhdr->sh_size; in sect_size()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dkmem.c2522 if (mdb_vread(&shdr, sizeof (shdr), (uintptr_t)mod.symhdr) == -1) { in whatis_walk_modctl()