/titanic_52/usr/src/cmd/sgs/libelf/common/ |
H A D | getshnum.c | 59 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 D | newscn.c | 82 ((Elf32_Ehdr *)elf->ed_ehdr)->e_shnum in elf_newscn() 112 ((Elf64_Ehdr *)elf->ed_ehdr)->e_shnum in elf_newscn()
|
H A D | update.c | 195 * is used to hold an alternative e_shnum, e_shstrndx and e_phnum. in _elf_upd_lib() 197 * would have been zeroed. The e_shnum is initialized later, after the in _elf_upd_lib() 203 eh->e_shnum = 0; in _elf_upd_lib() 306 * e_shnum is stored in the sh_size field of the in _elf_upd_lib() 309 * NOTE: we set e_shnum to '0' because it's specified 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 in _elf_upd_usr() [all...] |
H A D | checksum.c | 132 for (shnum = 1; shnum < ehdr->e_shnum; shnum++) { in elf_checksum()
|
/titanic_52/usr/src/boot/sys/boot/common/ |
H A D | load_elf_obj.c | 126 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; in __elfN() [all...] |
/titanic_52/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 149 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_52/usr/src/uts/i86pc/dboot/ |
H A D | dboot_elfload.c | 111 dboot_panic("Failed to get section headers e_shnum = %d", in dboot_elfload64() 112 eh->e_shnum); in dboot_elfload64() 179 for (i = 0; i < eh->e_shnum; i++) { in dboot_elfload64()
|
/titanic_52/usr/src/ucblib/libucb/port/gen/ |
H A D | nlist.c | 177 (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_52/usr/src/grub/grub-0.97/netboot/ |
H A D | elf.h | 178 Elf32_Half e_shnum; /* Number of section header entries. */ member 195 Elf64_Half e_shnum; /* Number of section header entries. */ member
|
/titanic_52/usr/src/uts/sparc/krtld/ |
H A D | kobj_reloc.c | 191 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 D | kobj_isa.c | 111 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in get_progbits_size()
|
/titanic_52/usr/src/cmd/sgs/liblddbg/common/ |
H A D | elf.c | 76 * The e_shnum, e_shstrndx and e_phnum entries may have a different in Elf_ehdr() 87 if (ehdr->e_shnum == 0) { in Elf_ehdr() 93 ehdr->e_shentsize, ehdr->e_shnum); in Elf_ehdr()
|
/titanic_52/usr/src/cmd/mdb/common/modules/krtld/ |
H A D | krtld.c | 163 mdb_printf(" e_shoff: 0x%16lx e_shentsize: %8hu e_shnum: %hu\n", in dump_ehdr() 164 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_52/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | ehdr.c | 68 EHDR_CMD_T_E_SHNUM = 13, /* ehdr:e_shnum */ 528 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() [all...] |
/titanic_52/usr/src/lib/libproc/common/ |
H A D | Pcore.c | 1381 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 * ef in core_elf_fdopen() [all...] |
/titanic_52/usr/src/uts/intel/ia32/krtld/ |
H A D | kobj_reloc.c | 282 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 D | kobj_isa.c | 95 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in get_progbits_size()
|
/titanic_52/usr/src/lib/libtnfctl/ |
H A D | traverse.c | 97 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_52/usr/src/uts/intel/amd64/krtld/ |
H A D | kobj_reloc.c | 288 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 D | kobj_isa.c | 95 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in get_progbits_size()
|
/titanic_52/usr/src/uts/common/krtld/ |
H A D | kobj.c | 914 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; sh in free_module_data() [all...] |
/titanic_52/usr/src/uts/i86xpv/os/ |
H A D | xpv_panic.c | 870 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_52/usr/src/psm/stand/boot/common/ |
H A D | readfile.c | 253 dprintf("e_shnum\t\t%d\n", (is64 ? in readfile() 254 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_52/usr/src/tools/ctf/cvt/ |
H A D | output.c | 493 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_52/usr/src/grub/grub-0.97/stage2/ |
H A D | i386-elf.h | 81 Elf32_Half e_shnum; /* number of entries in section header */ member
|