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

123

/opensolaris-onvv-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++) {
/opensolaris-onvv-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);
/opensolaris-onvv-gate/usr/src/uts/common/sys/
H A Delf.h78 Elf32_Half e_shnum; /* number shdrs */ member in struct:__anon7388
96 Elf64_Half e_shnum; /* number shdrs */ member in struct:__anon7389
/opensolaris-onvv-gate/usr/src/lib/libproc/common/
H A DPcontrol.h174 Elf64_Word e_shnum; /* shdr count extended to 32 bits */ member in struct:elf_file_header
H A DPsymtab_machelf32.c460 ep->e_shnum = 5 + (pltsz != 0) + (d[DI_SUNW_SYMTAB] != NULL);
465 off = ep->e_shoff + ep->e_shentsize * ep->e_shnum;
H A DPgcore.c1067 ehdr.e_shnum = 0;
1069 ehdr.e_shnum = (unsigned short)nshdrs;
1125 ehdr.e_shnum = 0;
1127 ehdr.e_shnum = (unsigned short)nshdrs;
/opensolaris-onvv-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;
/opensolaris-onvv-gate/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c868 n = mp->hdr.e_shentsize * mp->hdr.e_shnum;
885 for (shn = 1; shn < mp->hdr.e_shnum; shn++) {
949 if ((mp->symhdr != NULL) && (mp->symhdr->sh_link < mp->hdr.e_shnum)) {
992 kmem_free(mp->shdrs, mp->hdr.e_shentsize * mp->hdr.e_shnum);
/opensolaris-onvv-gate/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c330 num = iehdr->e_shnum;
733 if ((mcache = malloc(mehdr->e_shnum * sizeof (Cache))) == 0) {
/opensolaris-onvv-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;
/opensolaris-onvv-gate/usr/src/uts/common/fs/objfs/
H A Dobjfs_data.c643 ehdr.e_shnum = 0;
652 ehdr.e_shnum++;
/opensolaris-onvv-gate/usr/src/cmd/file/
H A Delf_read.c211 EI_Ehdr_shnum = EI_Ehdr.e_shnum;
/opensolaris-onvv-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;
/opensolaris-onvv-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c1391 EC_WORD(elf_head_p->e_shnum),
1398 EC_WORD(elf_head_p->e_shnum));
1400 if ((elf_head_p->e_shnum == 0) && (elf_head_p->e_shoff > 0)) {
/opensolaris-onvv-gate/usr/src/uts/common/exec/elf/
H A Delf.c976 *nshdrs = ehdr->e_shnum;
981 * If e_shnum, e_shstrndx, or e_phnum is its sentinel value, we need
1815 ehdr->e_shnum = 0;
1817 ehdr->e_shnum = (unsigned short)nshdrs;
/opensolaris-onvv-gate/usr/src/lib/libdtrace/common/
H A Ddt_link.c499 elf_file.ehdr.e_shnum = nshdr;
636 elf_file.ehdr.e_shnum = nshdr;
/opensolaris-onvv-gate/usr/src/cmd/sgs/ar/common/
H A Dfile.c226 ? (ehdr.e_shoff + (ehdr.e_shnum * ehdr.e_shentsize)) : 0;
/opensolaris-onvv-gate/usr/src/cmd/sgs/pvs/common/
H A Dpvs.c1157 if ((cache = calloc(ehdr.e_shnum, sizeof (Cache))) == NULL) {
/opensolaris-onvv-gate/usr/src/cmd/sgs/libld/common/
H A Dfiles.c109 * e_shnum & e_shstrndx which can be found at:
111 * e_shnum == Shdr[0].sh_size
114 if ((ehdr->e_shnum == 0) && (ehdr->e_shoff != 0)) {
134 ifl->ifl_shnum = ehdr->e_shnum;
H A Dsyms.c2056 } else if (shndx > ifl->ifl_ehdr->e_shnum) {
2371 } else if (shndx > ifl->ifl_ehdr->e_shnum) {
/opensolaris-onvv-gate/usr/src/cmd/abi/appcert/static_prof/
H A Dstatic_prof.c639 if ((c->obj->ehdr->e_shoff == 0) || (c->obj->ehdr->e_shnum == 0)) {

Completed in 529 milliseconds

123