/illumos-gate/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 | 78 ((Elf32_Ehdr *)elf->ed_ehdr)->e_shnum in elf_newscn() 105 ((Elf64_Ehdr *)elf->ed_ehdr)->e_shnum in elf_newscn()
|
H A D | update.c | 206 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 D | checksum.c | 132 for (shnum = 1; shnum < ehdr->e_shnum; shnum++) { in elf_checksum()
|
H A D | clscook.c | 355 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 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; i++) { in __elfN() [all …]
|
H A D | load_elf.c | 546 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.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()
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_elfload.c | 116 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 D | dw_elfstructs.h | 73 TYP(e_shnum,2); 91 TYP(e_shnum,2);
|
H A D | dwarf_elfstructs.h | 81 TYP(e_shnum,2); 99 TYP(e_shnum,2);
|
/illumos-gate/usr/src/uts/sparc/krtld/ |
H A D | kobj_reloc.c | 141 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 D | kobj_isa.c | 111 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in get_progbits_size()
|
/illumos-gate/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()
|
/illumos-gate/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
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | elf.c | 87 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 D | ehdr.c | 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() 1090 ehdr->e_shnum = e_shnum; in cmd_body()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/ |
H A D | krtld.c | 162 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 D | Pcore.c | 1534 b->ehdr.e_shnum = 3; in fake_up_symtab() 1600 b->ehdr.e_shnum = 3; in fake_up_symtab() 1762 efp->e_hdr.e_shnum = (Elf64_Word)e64.e_shnum; in core_elf_fdopen() 1782 efp->e_hdr.e_shnum = (Elf64_Word)e32.e_shnum; in core_elf_fdopen() 1793 if ((efp->e_hdr.e_shnum == 0 && efp->e_hdr.e_shoff != 0) || in core_elf_fdopen() 1826 if (efp->e_hdr.e_shnum == 0) { in core_elf_fdopen() 1827 efp->e_hdr.e_shnum = shdr.sh_size; in core_elf_fdopen() 1876 (uint64_t)efp->e_hdr.e_shnum * efp->e_hdr.e_shentsize; in core_elf_fdopen() 2228 if (efp->e_hdr.e_shstrndx >= efp->e_hdr.e_shnum) { in core_load_shdrs() 2230 efp->e_hdr.e_shstrndx, efp->e_hdr.e_shnum); in core_load_shdrs() [all …]
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj.c | 904 shsize = mp->hdr.e_shentsize * mp->hdr.e_shnum; in load_linker() 908 for (i = 1; i < (int)mp->hdr.e_shnum; i++) { in load_linker() 1228 n = mp->hdr.e_shentsize * mp->hdr.e_shnum; in bind_primary() 1558 mp->hdr.e_shnum = 2; in kobj_export_ksyms() 1602 for (shn = 1; shn < omp->hdr.e_shnum; shn++) { in kobj_export_ksyms() 1614 kobj_free(omp->shdrs, omp->hdr.e_shentsize * omp->hdr.e_shnum); in kobj_export_ksyms() 1744 for (dshp = NULL, shn = 1; shn < mp->hdr.e_shnum; shn++) { in do_dynamic() 1765 if (dshp->sh_link > mp->hdr.e_shnum) { in do_dynamic() 1942 n = mp->hdr.e_shentsize * mp->hdr.e_shnum; in kobj_load_module() 2218 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in free_module_data() [all …]
|
/illumos-gate/usr/src/uts/intel/amd64/krtld/ |
H A D | kobj_reloc.c | 301 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in do_relocations() 316 if (rshp->sh_info >= mp->hdr.e_shnum) { in do_relocations()
|
H A D | kobj_isa.c | 93 for (shn = 1; shn < mp->hdr.e_shnum; shn++) { in get_progbits_size()
|
/illumos-gate/usr/src/psm/stand/boot/common/ |
H A D | readfile.c | 214 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 D | xpv_panic.c | 850 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 D | i386-elf.h | 81 Elf32_Half e_shnum; /* number of entries in section header */ member
|