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

123

/illumos-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;
432 eh->e_shnum = scncnt;
437 eh->e_shnum
[all...]
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dload_elf_obj.c126 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 ||
202 shdrbytes = hdr->e_shnum * hdr->e_shentsize;
216 for (i = 0; i < hdr->e_shnum; i++)
218 for (i = 0; i < hdr->e_shnum; i++) {
233 for (i = 0; i < hdr->e_shnum; i++) {
253 if (symstrindex < 0 || symstrindex >= hdr->e_shnum ||
264 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum ||
276 for (i = 0; i < hdr->e_shnum; i++) {
300 for (i = 0; i < hdr->e_shnum; i++) {
436 for (i = 0; i < hdr->e_shnum;
[all...]
/illumos-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++) {
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Delf.h178 Elf32_Half e_shnum; /* Number of section header entries. */ member in struct:__anon2085
195 Elf64_Half e_shnum; /* Number of section header entries. */ member in struct:__anon2086
/illumos-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);
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c149 size = h.e_shnum * h.e_shentsize;
160 for (i = 0; i < h.e_shnum; i++)
165 if (i == h.e_shnum || sh[i].sh_size == 0 ||
167 sh[i].sh_link < 1 || sh[i].sh_link >= h.e_shnum ||
/illumos-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) {
/illumos-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) {
/illumos-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) {
/illumos-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++)
/illumos-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)) {
/illumos-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++) {
/illumos-gate/usr/src/lib/libproc/common/
H A DPcore.c1432 b->ehdr.e_shnum = 3;
1498 b->ehdr.e_shnum = 3;
1660 efp->e_hdr.e_shnum = (Elf64_Word)e64.e_shnum;
1680 efp->e_hdr.e_shnum = (Elf64_Word)e32.e_shnum;
1691 if ((efp->e_hdr.e_shnum == 0 && efp->e_hdr.e_shoff != 0) ||
1724 if (efp->e_hdr.e_shnum == 0) {
1725 efp->e_hdr.e_shnum = shdr.sh_size;
1774 (uint64_t)efp->e_hdr.e_shnum * ef
[all...]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c132 dst->e_shnum = src->e_shnum;
278 shnum = hdr.e64.e_shnum;
/illumos-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:__anon2184
/illumos-gate/usr/src/cmd/sgs/prof/common/
H A DsymintOpen.c214 pfile_p->pf_elfhd_p->e_shnum);
/illumos-gate/usr/src/boot/sys/sys/
H A Delf32.h68 Elf32_Half e_shnum; /* Number of section header entries. */ member in struct:__anon407
H A Delf64.h77 Elf64_Half e_shnum; /* Number of section header entries. */ member in struct:__anon424
/illumos-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...]

Completed in 697 milliseconds

123