Home
last modified time | relevance | path

Searched refs:e_shnum (Results 1 – 25 of 57) sorted by relevance

123

/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetshnum.c59 if (ehdr.e_shnum > 0) { in elf_getshdrnum()
60 *shnum = ehdr.e_shnum; in elf_getshdrnum()
63 if ((ehdr.e_shnum == 0) && (ehdr.e_shoff == 0)) { in elf_getshdrnum()
H A Dnewscn.c78 ((Elf32_Ehdr *)elf->ed_ehdr)->e_shnum in elf_newscn()
105 ((Elf64_Ehdr *)elf->ed_ehdr)->e_shnum in elf_newscn()
H A Dupdate.c206 eh->e_shnum = 0; in _elf_upd_lib()
318 eh->e_shnum = scncnt; in _elf_upd_lib()
323 eh->e_shnum = 0; in _elf_upd_lib()
390 eh->e_shnum = 0; in _elf_upd_usr()
434 eh->e_shnum = scncnt; in _elf_upd_usr()
439 eh->e_shnum = 0; in _elf_upd_usr()
H A Dchecksum.c132 for (shnum = 1; shnum < ehdr->e_shnum; shnum++) { in elf_checksum()
H A Dclscook.c355 if ((eh->e_shnum == 0) && (eh->e_shoff == 0)) in _elf_shdr()
369 if ((scncnt = eh->e_shnum) == 0) { in _elf_shdr()
/illumos-gate/usr/src/boot/common/
H A Dload_elf_obj.c126 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 || in __elfN()
202 shdrbytes = hdr->e_shnum * hdr->e_shentsize; in __elfN()
216 for (i = 0; i < hdr->e_shnum; i++) in __elfN()
218 for (i = 0; i < hdr->e_shnum; i++) { in __elfN()
233 for (i = 0; i < hdr->e_shnum; i++) { in __elfN()
253 if (symstrindex < 0 || symstrindex >= hdr->e_shnum || in __elfN()
264 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum || in __elfN()
276 for (i = 0; i < hdr->e_shnum; i++) { in __elfN()
300 for (i = 0; i < hdr->e_shnum; i++) { in __elfN()
436 for (i = 0; i < hdr->e_shnum; i++) { in __elfN()
[all …]
H A Dload_elf.c546 chunk = ehdr->e_shnum * ehdr->e_shentsize; in __elfN()
567 for (i = 0; i < ehdr->e_shnum; i++) { in __elfN()
588 for (i = 0; i < ehdr->e_shnum; i++) { in __elfN()
853 size = ef.ehdr->e_shnum * ef.ehdr->e_shentsize; in __elfN()
872 for (i = 0, j = 0; i < ef.ehdr->e_shnum; i++) { in __elfN()
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c149 size = h.e_shnum * h.e_shentsize; in __fex_read_syms()
160 for (i = 0; i < h.e_shnum; i++) in __fex_read_syms()
165 if (i == h.e_shnum || sh[i].sh_size == 0 || in __fex_read_syms()
167 sh[i].sh_link < 1 || sh[i].sh_link >= h.e_shnum || in __fex_read_syms()
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c116 eh->e_shnum); in dboot_elfload64()
183 for (i = 0; i < eh->e_shnum; i++) { in dboot_elfload64()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddw_elfstructs.h73 TYP(e_shnum,2);
91 TYP(e_shnum,2);
H A Ddwarf_elfstructs.h81 TYP(e_shnum,2);
99 TYP(e_shnum,2);
/illumos-gate/usr/src/uts/sparc/krtld/
H A Dkobj_reloc.c141 for (i = 0; i < mp->hdr.e_shnum; i++, shp++) { in do_relocate()
292 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in do_relocations()
307 if (rshp->sh_info >= mp->hdr.e_shnum) { in do_relocations()
H A Dkobj_isa.c111 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in get_progbits_size()
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c177 (size_t)(ehdr->e_shentsize * ehdr->e_shnum), in _elf_nlist()
178 (size_t)(ehdr->e_shnum * sizeof (Elf32_Ehdr)), in _elf_nlist()
187 for (i = 0; i < (Elf32_Word)ehdr->e_shnum; i++, symhdr++) in _elf_nlist()
192 (symhdr->sh_link >= ehdr->e_shnum)) { in _elf_nlist()
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Delf.h178 Elf32_Half e_shnum; /* Number of section header entries. */ member
195 Elf64_Half e_shnum; /* Number of section header entries. */ member
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Delf.c87 if (ehdr->e_shnum == 0) { in Elf_ehdr()
93 ehdr->e_shentsize, ehdr->e_shnum); in Elf_ehdr()
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c528 Word num = ehdr->e_shnum; in print_ehdr()
1070 Half e_shnum; in cmd_body() local
1074 e_shnum = 0; in cmd_body()
1077 e_shnum = shnum; in cmd_body()
1081 if (ehdr->e_shnum == e_shnum) { in cmd_body()
1084 EC_WORD(ehdr->e_shnum)); in cmd_body()
1088 EC_WORD(ehdr->e_shnum), e_shnum); in cmd_body()
1090 ehdr->e_shnum = e_shnum; in cmd_body()
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/
H A Dkrtld.c162 ehdr->e_shoff, ehdr->e_shentsize, ehdr->e_shnum); in dump_ehdr()
246 nbytes = sizeof (Shdr) * mod.hdr.e_shnum; in modhdrs()
250 for (i = 0; i < mod.hdr.e_shnum; i++) in modhdrs()
/illumos-gate/usr/src/lib/libproc/common/
H A DPcore.c1500 b->ehdr.e_shnum = 3; in fake_up_symtab()
1566 b->ehdr.e_shnum = 3; in fake_up_symtab()
1728 efp->e_hdr.e_shnum = (Elf64_Word)e64.e_shnum; in core_elf_fdopen()
1748 efp->e_hdr.e_shnum = (Elf64_Word)e32.e_shnum; in core_elf_fdopen()
1792 if (efp->e_hdr.e_shnum == 0) { in core_elf_fdopen()
1793 efp->e_hdr.e_shnum = shdr.sh_size; in core_elf_fdopen()
2194 if (efp->e_hdr.e_shstrndx >= efp->e_hdr.e_shnum) { in core_load_shdrs()
2196 efp->e_hdr.e_shstrndx, efp->e_hdr.e_shnum); in core_load_shdrs()
2225 for (i = 0; i < efp->e_hdr.e_shnum; i++) { in core_load_shdrs()
2263 for (i = 0; i < efp->e_hdr.e_shnum; i++) { in core_load_shdrs()
[all …]
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_reloc.c293 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in do_relocations()
308 if (rshp->sh_info >= mp->hdr.e_shnum) { in do_relocations()
H A Dkobj_isa.c93 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in get_progbits_size()
/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj.c907 for (i = 1; i < (int)mp->hdr.e_shnum; i++) { in load_linker()
1227 n = mp->hdr.e_shentsize * mp->hdr.e_shnum; in bind_primary()
1557 mp->hdr.e_shnum = 2; in kobj_export_ksyms()
1764 if (dshp->sh_link > mp->hdr.e_shnum) { in do_dynamic()
1941 n = mp->hdr.e_shentsize * mp->hdr.e_shnum; in kobj_load_module()
2231 mp->hdr.e_shentsize * mp->hdr.e_shnum); in free_module_data()
2566 if (sp->st_shndx >= mp->hdr.e_shnum) { in get_syms()
2632 if (mp->hdr.e_shstrndx >= mp->hdr.e_shnum) { in get_ctf()
2653 for (i = 0; i < mp->hdr.e_shnum; i++) { in get_ctf()
2736 if (mp->hdr.e_shstrndx >= mp->hdr.e_shnum) { in get_signature()
[all …]
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dreadfile.c214 elfhdr64.e_shnum : elfhdr.e_shnum)); in readfile()
1015 size = ehdr->e_shentsize * ehdr->e_shnum; in iload32()
1033 for (i = 1; i < ehdr->e_shnum; i++) { in iload32()
1162 size = ehdr->e_shentsize * ehdr->e_shnum; in iload64()
1182 for (i = 1; i < ehdr->e_shnum; i++) { in iload64()
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c850 n = mp->hdr.e_shentsize * mp->hdr.e_shnum; in init_xen_module()
867 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in init_xen_module()
931 if ((mp->symhdr != NULL) && (mp->symhdr->sh_link < mp->hdr.e_shnum)) { 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/grub/grub-0.97/stage2/
H A Di386-elf.h81 Elf32_Half e_shnum; /* number of entries in section header */ member

123