Home
last modified time | relevance | path

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

123

/titanic_50/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.c82 ((Elf32_Ehdr *)elf->ed_ehdr)->e_shnum in elf_newscn()
112 ((Elf64_Ehdr *)elf->ed_ehdr)->e_shnum in elf_newscn()
H A Dupdate.c203 eh->e_shnum = 0; in _elf_upd_lib()
315 eh->e_shnum = scncnt; in _elf_upd_lib()
320 eh->e_shnum = 0; in _elf_upd_lib()
388 eh->e_shnum = 0; in _elf_upd_usr()
432 eh->e_shnum = scncnt; in _elf_upd_usr()
437 eh->e_shnum = 0; in _elf_upd_usr()
H A Dchecksum.c132 for (shnum = 1; shnum < ehdr->e_shnum; shnum++) { in elf_checksum()
/titanic_50/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()
/titanic_50/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c112 eh->e_shnum); in dboot_elfload64()
179 for (i = 0; i < eh->e_shnum; i++) { in dboot_elfload64()
/titanic_50/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()
/titanic_50/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
/titanic_50/usr/src/uts/sparc/krtld/
H A Dkobj_reloc.c191 for (i = 0; i < mp->hdr.e_shnum; i++, shp++) { in do_relocate()
347 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in do_relocations()
362 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()
/titanic_50/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()
/titanic_50/usr/src/cmd/mdb/common/modules/krtld/
H A Dkrtld.c164 ehdr->e_shoff, ehdr->e_shentsize, ehdr->e_shnum); in dump_ehdr()
248 nbytes = sizeof (Shdr) * mod.hdr.e_shnum; in modhdrs()
252 for (i = 0; i < mod.hdr.e_shnum; i++) in modhdrs()
/titanic_50/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()
/titanic_50/usr/src/lib/libproc/common/
H A DPcore.c1381 b->ehdr.e_shnum = 3; in fake_up_symtab()
1447 b->ehdr.e_shnum = 3; in fake_up_symtab()
1609 efp->e_hdr.e_shnum = (Elf64_Word)e64.e_shnum; in core_elf_fdopen()
1629 efp->e_hdr.e_shnum = (Elf64_Word)e32.e_shnum; in core_elf_fdopen()
1640 if ((efp->e_hdr.e_shnum == 0 && efp->e_hdr.e_shoff != 0) || in core_elf_fdopen()
1673 if (efp->e_hdr.e_shnum == 0) { in core_elf_fdopen()
1674 efp->e_hdr.e_shnum = shdr.sh_size; in core_elf_fdopen()
1723 (uint64_t)efp->e_hdr.e_shnum * efp->e_hdr.e_shentsize; in core_elf_fdopen()
2075 if (efp->e_hdr.e_shstrndx >= efp->e_hdr.e_shnum) { in core_load_shdrs()
2077 efp->e_hdr.e_shstrndx, efp->e_hdr.e_shnum); in core_load_shdrs()
[all …]
/titanic_50/usr/src/uts/intel/ia32/krtld/
H A Dkobj_reloc.c282 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in do_relocations()
297 if (rshp->sh_info >= mp->hdr.e_shnum) { in do_relocations()
H A Dkobj_isa.c95 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in get_progbits_size()
/titanic_50/usr/src/uts/intel/amd64/krtld/
H A Dkobj_reloc.c288 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in do_relocations()
303 if (rshp->sh_info >= mp->hdr.e_shnum) { in do_relocations()
H A Dkobj_isa.c95 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in get_progbits_size()
/titanic_50/usr/src/lib/libtnfctl/
H A Dtraverse.c97 tnf_long, num_sections_found, ehdr->e_shnum); in _tnfctl_traverse_object()
99 for (idx = 1; idx < ehdr->e_shnum; idx++) { in _tnfctl_traverse_object()
/titanic_50/usr/src/uts/common/krtld/
H A Dkobj.c914 shsize = mp->hdr.e_shentsize * mp->hdr.e_shnum; in load_linker()
918 for (i = 1; i < (int)mp->hdr.e_shnum; i++) { in load_linker()
1243 n = mp->hdr.e_shentsize * mp->hdr.e_shnum; in bind_primary()
1573 mp->hdr.e_shnum = 2; in kobj_export_ksyms()
1617 for (shn = 1; shn < omp->hdr.e_shnum; shn++) { in kobj_export_ksyms()
1629 kobj_free(omp->shdrs, omp->hdr.e_shentsize * omp->hdr.e_shnum); in kobj_export_ksyms()
1759 for (dshp = NULL, shn = 1; shn < mp->hdr.e_shnum; shn++) { in do_dynamic()
1780 if (dshp->sh_link > mp->hdr.e_shnum) { in do_dynamic()
1957 n = mp->hdr.e_shentsize * mp->hdr.e_shnum; in kobj_load_module()
2221 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in free_module_data()
[all …]
/titanic_50/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c870 n = mp->hdr.e_shentsize * mp->hdr.e_shnum; in init_xen_module()
887 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in init_xen_module()
951 if ((mp->symhdr != NULL) && (mp->symhdr->sh_link < mp->hdr.e_shnum)) { in init_xen_module()
994 kmem_free(mp->shdrs, mp->hdr.e_shentsize * mp->hdr.e_shnum); in init_xen_module()
/titanic_50/usr/src/psm/stand/boot/common/
H A Dreadfile.c254 elfhdr64.e_shnum : elfhdr.e_shnum)); in readfile()
1139 size = ehdr->e_shentsize * ehdr->e_shnum; in iload32()
1157 for (i = 1; i < ehdr->e_shnum; i++) { in iload32()
1295 size = ehdr->e_shentsize * ehdr->e_shnum;
1320 for (i = 1; i < ehdr->e_shnum; i++) {
/titanic_50/usr/src/tools/ctf/cvt/
H A Doutput.c493 secxlate = xmalloc(sizeof (int) * sehdr.e_shnum); in write_file()
494 for (srcidx = dstidx = 0; srcidx < sehdr.e_shnum; srcidx++) { in write_file()
523 for (srcidx = 1; srcidx < sehdr.e_shnum; srcidx++) { in write_file()
/titanic_50/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h81 Elf32_Half e_shnum; /* number of entries in section header */ member
/titanic_50/usr/src/uts/common/sys/
H A Delf.h82 Elf32_Half e_shnum; /* number shdrs */ member
100 Elf64_Half e_shnum; /* number shdrs */ member

123