Searched refs:e_shnum (Results 1 - 25 of 53) sorted by relevance

123

/opensolaris-onvv-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetshnum.c59 if (ehdr.e_shnum > 0) {
60 *shnum = ehdr.e_shnum;
63 if ((ehdr.e_shnum == 0) && (ehdr.e_shoff == 0)) {
H A Dnewscn.c82 ((Elf32_Ehdr *)elf->ed_ehdr)->e_shnum
112 ((Elf64_Ehdr *)elf->ed_ehdr)->e_shnum
H A Dchecksum.c132 for (shnum = 1; shnum < ehdr->e_shnum; shnum++) {
H A Dupdate.c195 * is used to hold an alternative e_shnum, e_shstrndx and e_phnum.
197 * would have been zeroed. The e_shnum is initialized later, after the
203 eh->e_shnum = 0;
306 * e_shnum is stored in the sh_size field of the
309 * NOTE: we set e_shnum to '0' because it's specified
315 eh->e_shnum = scncnt;
320 eh->e_shnum = 0;
388 eh->e_shnum = 0;
390 eh->e_shnum = 1;
402 ++eh->e_shnum;
[all...]
/opensolaris-onvv-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c111 dboot_panic("Failed to get section headers e_shnum = %d",
112 eh->e_shnum);
179 for (i = 0; i < eh->e_shnum; i++) {
/opensolaris-onvv-gate/usr/src/cmd/sgs/liblddbg/common/
H A Delf.c76 * The e_shnum, e_shstrndx and e_phnum entries may have a different
87 if (ehdr->e_shnum == 0) {
93 ehdr->e_shentsize, ehdr->e_shnum);
/opensolaris-onvv-gate/usr/src/grub/grub-0.97/netboot/
H A Delf.h178 Elf32_Half e_shnum; /* Number of section header entries. */ member in struct:__anon2327
195 Elf64_Half e_shnum; /* Number of section header entries. */ member in struct:__anon2328
/opensolaris-onvv-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_isa.c95 for (shn = 1; shn < mp->hdr.e_shnum; shn++) {
H A Dkobj_reloc.c288 for (shn = 1; shn < mp->hdr.e_shnum; shn++) {
303 if (rshp->sh_info >= mp->hdr.e_shnum) {
/opensolaris-onvv-gate/usr/src/uts/intel/ia32/krtld/
H A Dkobj_isa.c95 for (shn = 1; shn < mp->hdr.e_shnum; shn++) {
H A Dkobj_reloc.c282 for (shn = 1; shn < mp->hdr.e_shnum; shn++) {
297 if (rshp->sh_info >= mp->hdr.e_shnum) {
/opensolaris-onvv-gate/usr/src/uts/sparc/krtld/
H A Dkobj_isa.c111 for (shn = 1; shn < mp->hdr.e_shnum; shn++) {
H A Dkobj_reloc.c191 for (i = 0; i < mp->hdr.e_shnum; i++, shp++) {
347 for (shn = 1; shn < mp->hdr.e_shnum; shn++) {
362 if (rshp->sh_info >= mp->hdr.e_shnum) {
/opensolaris-onvv-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c134 dst->e_shnum = src->e_shnum;
280 if (hdr.e64.e_shstrndx >= hdr.e64.e_shnum)
283 n = hdr.e64.e_shnum;
340 if (shp->sh_link >= hdr.e64.e_shnum)
/opensolaris-onvv-gate/usr/src/lib/libproc/common/
H A DPcore.c846 b->ehdr.e_shnum = 3;
912 b->ehdr.e_shnum = 3;
1074 efp->e_hdr.e_shnum = (Elf64_Word)e64.e_shnum;
1094 efp->e_hdr.e_shnum = (Elf64_Word)e32.e_shnum;
1105 if ((efp->e_hdr.e_shnum == 0 && efp->e_hdr.e_shoff != 0) ||
1138 if (efp->e_hdr.e_shnum == 0) {
1139 efp->e_hdr.e_shnum = shdr.sh_size;
1188 (uint64_t)efp->e_hdr.e_shnum * ef
[all...]
/opensolaris-onvv-gate/usr/src/cmd/mdb/common/modules/krtld/
H A Dkrtld.c163 mdb_printf(" e_shoff: 0x%16lx e_shentsize: %8hu e_shnum: %hu\n",
164 ehdr->e_shoff, ehdr->e_shentsize, ehdr->e_shnum);
248 nbytes = sizeof (Shdr) * mod.hdr.e_shnum;
252 for (i = 0; i < mod.hdr.e_shnum; i++)
/opensolaris-onvv-gate/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c177 (size_t)(ehdr->e_shentsize * ehdr->e_shnum),
178 (size_t)(ehdr->e_shnum * sizeof (Elf32_Ehdr)),
187 for (i = 0; i < (Elf32_Word)ehdr->e_shnum; i++, symhdr++)
192 (symhdr->sh_link >= ehdr->e_shnum)) {
/opensolaris-onvv-gate/usr/src/cmd/sgs/size/common/
H A Dprocess.c131 if (ehdr.e_shnum == 0) {
134 numsect = ehdr.e_shnum;
/opensolaris-onvv-gate/usr/src/common/crypto/fips/
H A Dfips_checksum.c140 numsec = ehdr->e_shnum;
215 numsec = ehdr->e_shnum;
/opensolaris-onvv-gate/usr/src/lib/libtnfctl/
H A Dtraverse.c97 tnf_long, num_sections_found, ehdr->e_shnum);
99 for (idx = 1; idx < ehdr->e_shnum; idx++) {
/opensolaris-onvv-gate/usr/src/cmd/sgs/prof/common/
H A DsymintOpen.c214 pfile_p->pf_elfhd_p->e_shnum);
/opensolaris-onvv-gate/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h81 Elf32_Half e_shnum; /* number of entries in section header */ member in struct:__anon2425
/opensolaris-onvv-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c68 EHDR_CMD_T_E_SHNUM = 13, /* ehdr:e_shnum */
528 Word num = ehdr->e_shnum;
1070 Half e_shnum; local
1074 e_shnum = 0;
1077 e_shnum = shnum;
1081 if (ehdr->e_shnum == e_shnum) {
1084 EC_WORD(ehdr->e_shnum));
1088 EC_WORD(ehdr->e_shnum), e_shnum);
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/krtld/
H A Dkobj.c910 shsize = mp->hdr.e_shentsize * mp->hdr.e_shnum;
914 for (i = 1; i < (int)mp->hdr.e_shnum; i++) {
1239 n = mp->hdr.e_shentsize * mp->hdr.e_shnum;
1555 mp->hdr.e_shnum = 2;
1599 for (shn = 1; shn < omp->hdr.e_shnum; shn++) {
1611 kobj_free(omp->shdrs, omp->hdr.e_shentsize * omp->hdr.e_shnum);
1741 for (dshp = NULL, shn = 1; shn < mp->hdr.e_shnum; shn++) {
1762 if (dshp->sh_link > mp->hdr.e_shnum) {
1939 n = mp->hdr.e_shentsize * mp->hdr.e_shnum;
2203 for (shn = 1; shn < mp->hdr.e_shnum; sh
[all...]
/opensolaris-onvv-gate/usr/src/tools/ctf/cvt/
H A Doutput.c496 secxlate = xmalloc(sizeof (int) * sehdr.e_shnum);
497 for (srcidx = dstidx = 0; srcidx < sehdr.e_shnum; srcidx++) {
532 for (srcidx = 1; srcidx < sehdr.e_shnum; srcidx++) {

Completed in 411 milliseconds

123