Searched refs:e_shnum (Results 26 - 50 of 55) sorted by relevance

123

/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj.c914 shsize = mp->hdr.e_shentsize * mp->hdr.e_shnum;
918 for (i = 1; i < (int)mp->hdr.e_shnum; i++) {
1243 n = mp->hdr.e_shentsize * mp->hdr.e_shnum;
1573 mp->hdr.e_shnum = 2;
1617 for (shn = 1; shn < omp->hdr.e_shnum; shn++) {
1629 kobj_free(omp->shdrs, omp->hdr.e_shentsize * omp->hdr.e_shnum);
1759 for (dshp = NULL, shn = 1; shn < mp->hdr.e_shnum; shn++) {
1780 if (dshp->sh_link > mp->hdr.e_shnum) {
1957 n = mp->hdr.e_shentsize * mp->hdr.e_shnum;
2221 for (shn = 1; shn < mp->hdr.e_shnum; sh
[all...]
/illumos-gate/usr/src/tools/ctf/cvt/
H A Doutput.c493 secxlate = xmalloc(sizeof (int) * sehdr.e_shnum);
494 for (srcidx = dstidx = 0; srcidx < sehdr.e_shnum; srcidx++) {
523 for (srcidx = 1; srcidx < sehdr.e_shnum; srcidx++) {
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dreadfile.c253 dprintf("e_shnum\t\t%d\n", (is64 ?
254 elfhdr64.e_shnum : elfhdr.e_shnum));
1139 size = ehdr->e_shentsize * ehdr->e_shnum;
1157 for (i = 1; i < ehdr->e_shnum; i++) {
1295 size = ehdr->e_shentsize * ehdr->e_shnum;
1320 for (i = 1; i < ehdr->e_shnum; i++) {
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dclscook.c364 if ((eh->e_shnum == 0) && (eh->e_shoff == 0))
378 if ((scncnt = eh->e_shnum) == 0) {
H A Dgelf.c114 dst->e_shnum = e->e_shnum;
176 d->e_shnum = src->e_shnum;
H A Dxlate.m41006 tofh(dst, src->e_shnum, E1_shnum_$2);
1541 dst->e_shnum = tomh(src, E1_shnum_$2);
H A Dxlate64.m4997 tofh(dst, src->e_shnum, E1_shnum_$2);
1579 dst->e_shnum = tomh(src, E1_shnum_$2);
/illumos-gate/usr/src/uts/common/sys/
H A Delf.h82 Elf32_Half e_shnum; /* number shdrs */ member in struct:__anon252
100 Elf64_Half e_shnum; /* number shdrs */ member in struct:__anon253
/illumos-gate/usr/src/uts/common/os/
H A Dksyms_snapshot.c154 hdr.elf_hdr.e_shnum = KSHDR_NUM;
H A Dbrand.c457 dst->e_shnum = src->e_shnum;
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c871 n = mp->hdr.e_shentsize * mp->hdr.e_shnum;
888 for (shn = 1; shn < mp->hdr.e_shnum; shn++) {
952 if ((mp->symhdr != NULL) && (mp->symhdr->sh_link < mp->hdr.e_shnum)) {
995 kmem_free(mp->shdrs, mp->hdr.e_shentsize * mp->hdr.e_shnum);
/illumos-gate/usr/src/lib/libproc/common/
H A DPcontrol.h188 Elf64_Word e_shnum; /* shdr count extended to 32 bits */ member in struct:elf_file_header
H A DPsymtab_machelf32.c467 ep->e_shnum = 5 + (pltsz != 0) + (d[DI_SUNW_SYMTAB] != NULL);
472 off = ep->e_shoff + ep->e_shentsize * ep->e_shnum;
H A DPgcore.c1135 ehdr.e_shnum = 0;
1137 ehdr.e_shnum = (unsigned short)nshdrs;
1193 ehdr.e_shnum = 0;
1195 ehdr.e_shnum = (unsigned short)nshdrs;
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dload_elf.c507 chunk = ehdr->e_shnum * ehdr->e_shentsize;
527 for (i = 0; i < ehdr->e_shnum; i++) {
547 for (i = 0; i < ehdr->e_shnum; i++) {
802 size = ef.ehdr->e_shnum * ef.ehdr->e_shentsize;
821 for (i = 0, j = 0; i < ef.ehdr->e_shnum; i++) {
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dboot.c661 mbi.syms.e.num = pu.elf->e_shnum;
669 tab_size = pu.elf->e_shentsize * pu.elf->e_shnum;
/illumos-gate/usr/src/uts/common/fs/objfs/
H A Dobjfs_data.c643 ehdr.e_shnum = 0;
652 ehdr.e_shnum++;
/illumos-gate/usr/src/tools/ctf/dwarf/common/
H A Ddwarf_elf_access.c168 obj->section_count = obj->ehdr64->e_shnum;
182 obj->section_count = obj->ehdr32->e_shnum;
/illumos-gate/usr/src/cmd/file/
H A Delf_read.c209 EI_Ehdr_shnum = EI_Ehdr.e_shnum;
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c192 dst->e_shnum = src->e_shnum;
600 gf->gf_ehdr.e_shnum = ehdr->e_shnum;
603 gf->gf_shnum = gf->gf_ehdr.e_shnum;
662 gf->gf_shnum = gf->gf_ehdr.e_shnum;
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c1392 EC_WORD(elf_head_p->e_shnum),
1399 EC_WORD(elf_head_p->e_shnum));
1401 if ((elf_head_p->e_shnum == 0) && (elf_head_p->e_shoff > 0)) {
/illumos-gate/usr/src/boot/sys/boot/i386/gptzfsboot/
H A Dzfsboot.c475 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) {
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c1103 *nshdrs = ehdr->e_shnum;
1108 * If e_shnum, e_shstrndx, or e_phnum is its sentinel value, we need
1979 ehdr->e_shnum = 0;
1981 ehdr->e_shnum = (unsigned short)nshdrs;
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_link.c499 elf_file.ehdr.e_shnum = nshdr;
636 elf_file.ehdr.e_shnum = nshdr;
/illumos-gate/usr/src/cmd/abi/appcert/static_prof/
H A Dstatic_prof.c624 if ((c->obj->ehdr->e_shoff == 0) || (c->obj->ehdr->e_shnum == 0)) {

Completed in 227 milliseconds

123