| /src/sys/arch/amd64/stand/prekern/ |
| elf.c | 129 for (i = 0; i < eif.ehdr->e_shnum; i++) { 181 if (sym->st_shndx >= eif.ehdr->e_shnum) { 283 size = (vaddr_t)shdr + (vaddr_t)(ehdr->e_shnum * sizeof(Elf_Shdr)) - 313 for (i = 0; i < eif.ehdr->e_shnum; i++) { 344 for (i = 0; i < eif.ehdr->e_shnum; i++) { 386 if (j >= eif.ehdr->e_shnum) { 393 for (i = 0; i < eif.ehdr->e_shnum; i++) { 397 if (i == eif.ehdr->e_shnum) { 408 if (j == SHN_UNDEF || j >= eif.ehdr->e_shnum) { 434 for (i = 0; i < eif.ehdr->e_shnum; i++) [all...] |
| /src/external/bsd/elftoolchain/dist/libelf/ |
| gelf_ehdr.c | 90 d->e_shnum = eh32->e_shnum; 173 eh32->e_shnum = s->e_shnum;
|
| libelf_extended.c | 80 ((Elf32_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; 82 ((Elf64_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU;
|
| /src/external/bsd/file/dist/src/ |
| elfclass.h | 57 shnum = elf_getu16(swap, elfhdr.e_shnum); 67 shnum = elf_getu16(swap, elfhdr.e_shnum);
|
| /src/sys/arch/hpcmips/stand/pbsdboot/ |
| elf.c | 153 (shtbl = (Elf_Shdr *)alloc(sizeof(*shtbl) * elf->e_shnum)) == NULL) { 176 if (read(fd, (void *)shtbl, sizeof(Elf_Shdr) * elf->e_shnum) 177 != (int)(sizeof(Elf_Shdr) * elf->e_shnum)) { 245 for (i = 0; i < elf->e_shnum; i++) { 275 dbg_eh.e_shnum = 2; 350 if (shtbl) dealloc(shtbl, sizeof(*shtbl) * elf->e_shnum); 359 if (shtbl) dealloc(shtbl, sizeof(*shtbl) * elf->e_shnum);
|
| /src/libexec/ld.elf_so/arch/powerpc/ |
| fixup.c | 128 if (_rtld_ncpus == 1 || ehdr->e_shnum == 0 || 133 shdr_size = (size_t)ehdr->e_shentsize * ehdr->e_shnum; 142 for (i = 0; i < ehdr->e_shnum; i++) {
|
| /src/sys/compat/linux/common/ |
| linux_exec_elf32.c | 106 shsize = eh->e_shnum * sizeof(Elf_Shdr); 115 if (shstrndx == SHN_UNDEF || shstrndx >= eh->e_shnum) { 122 for (i = 0; i < eh->e_shnum; i++) { 171 shsize = eh->e_shnum * sizeof(Elf_Shdr); 178 for (i = 0; i < eh->e_shnum; i++) { 231 shsize = eh->e_shnum * sizeof(Elf_Shdr); 240 if (shstrndx == SHN_UNDEF || shstrndx >= eh->e_shnum) { 247 for (i = 0; i < eh->e_shnum; i++) { 292 shsize = eh->e_shnum * sizeof(Elf_Shdr); 301 if (shstrndx == SHN_UNDEF || shstrndx >= eh->e_shnum) { [all...] |
| /src/external/gpl3/binutils/dist/include/elf/ |
| external.h | 65 unsigned char e_shnum[2]; /* Section header table entry count */ member in struct:__anon10460 82 unsigned char e_shnum[2]; /* Section header table entry count */ member in struct:__anon10461
|
| /src/external/gpl3/binutils.old/dist/include/elf/ |
| external.h | 65 unsigned char e_shnum[2]; /* Section header table entry count */ member in struct:__anon11924 82 unsigned char e_shnum[2]; /* Section header table entry count */ member in struct:__anon11925
|
| /src/external/gpl3/gdb.old/dist/include/elf/ |
| external.h | 65 unsigned char e_shnum[2]; /* Section header table entry count */ member in struct:__anon21312 82 unsigned char e_shnum[2]; /* Section header table entry count */ member in struct:__anon21313
|
| /src/external/gpl3/gdb/dist/include/elf/ |
| external.h | 65 unsigned char e_shnum[2]; /* Section header table entry count */ member in struct:__anon900 82 unsigned char e_shnum[2]; /* Section header table entry count */ member in struct:__anon901
|
| /src/external/gpl3/binutils/dist/bfd/ |
| elfcode.h | 256 dst->e_shnum = H_GET_16 (abfd, src->e_shnum); 295 H_PUT_16 (abfd, 0, dst->e_shnum); 301 tmp = src->e_shnum; 304 H_PUT_16 (abfd, tmp, dst->e_shnum); 597 if (i_ehdrp->e_shentsize != sizeof (x_shdr) && i_ehdrp->e_shnum != 0) 601 if (i_ehdrp->e_shoff < sizeof (x_ehdr) && i_ehdrp->e_shnum != 0) 652 if (i_ehdrp->e_shnum == SHN_UNDEF) 654 i_ehdrp->e_shnum = i_shdr.sh_size; 655 if (i_ehdrp->e_shnum >= SHN_LORESERV [all...] |
| /src/external/gpl3/binutils.old/dist/bfd/ |
| elfcode.h | 256 dst->e_shnum = H_GET_16 (abfd, src->e_shnum); 295 H_PUT_16 (abfd, 0, dst->e_shnum); 301 tmp = src->e_shnum; 304 H_PUT_16 (abfd, tmp, dst->e_shnum); 596 if (i_ehdrp->e_shentsize != sizeof (x_shdr) && i_ehdrp->e_shnum != 0) 600 if (i_ehdrp->e_shoff < sizeof (x_ehdr) && i_ehdrp->e_shnum != 0) 653 if (i_ehdrp->e_shnum == SHN_UNDEF) 655 i_ehdrp->e_shnum = i_shdr.sh_size; 656 if (i_ehdrp->e_shnum >= SHN_LORESERV [all...] |
| /src/external/gpl3/gdb.old/dist/bfd/ |
| elfcode.h | 256 dst->e_shnum = H_GET_16 (abfd, src->e_shnum); 295 H_PUT_16 (abfd, 0, dst->e_shnum); 301 tmp = src->e_shnum; 304 H_PUT_16 (abfd, tmp, dst->e_shnum); 596 if (i_ehdrp->e_shentsize != sizeof (x_shdr) && i_ehdrp->e_shnum != 0) 600 if (i_ehdrp->e_shoff < sizeof (x_ehdr) && i_ehdrp->e_shnum != 0) 653 if (i_ehdrp->e_shnum == SHN_UNDEF) 655 i_ehdrp->e_shnum = i_shdr.sh_size; 656 if (i_ehdrp->e_shnum >= SHN_LORESERV [all...] |
| /src/external/gpl3/gdb/dist/bfd/ |
| elfcode.h | 256 dst->e_shnum = H_GET_16 (abfd, src->e_shnum); 295 H_PUT_16 (abfd, 0, dst->e_shnum); 301 tmp = src->e_shnum; 304 H_PUT_16 (abfd, tmp, dst->e_shnum); 596 if (i_ehdrp->e_shentsize != sizeof (x_shdr) && i_ehdrp->e_shnum != 0) 600 if (i_ehdrp->e_shoff < sizeof (x_ehdr) && i_ehdrp->e_shnum != 0) 653 if (i_ehdrp->e_shnum == SHN_UNDEF) 655 i_ehdrp->e_shnum = i_shdr.sh_size; 656 if (i_ehdrp->e_shnum >= SHN_LORESERV [all...] |
| /src/sys/arch/i386/stand/lib/ |
| exec_multiboot1.c | 59 shnum = ehdr32->e_shnum; 63 shnum = ehdr64->e_shnum; 175 shlen = ehdr.e_shnum * ehdr.e_shentsize; 185 mbi->mi_elfshdr_num = ehdr.e_shnum;
|
| /src/sys/arch/x68k/stand/common/ |
| exec_sub.c | 170 for (u = 0; sh++, ++u < hdr->e_shnum; ) { 181 xarg->ehdr.e_shnum = 0; /* no symbol */ 191 xarg->ehdr.e_shnum = 3; 207 xarg->ehdr.e_shnum++;
|
| /src/sys/lib/libsa/ |
| lookup_elf32.c | 69 for (i = 0; i < elf->e_shnum; i++) {
|
| loadfile_elf32.c | 104 I16(ehdr->e_shnum); 118 I16(ehdr->e_shnum); 141 E16(ehdr->e_shnum); 155 E16(ehdr->e_shnum); 367 shdrsz = elf->e_shnum * sizeof(Elf_Shdr); 389 for (i = 0; i < elf->e_shnum; i++) 401 for (i = 0; i < elf->e_shnum; i++) { 444 for (i = 0; i < elf->e_shnum; i++) { 450 for (j = 0; j < elf->e_shnum; j++) 482 for (i = 0; i < elf->e_shnum; i++ [all...] |
| /src/sys/arch/amiga/stand/bootblock/elf2bb/ |
| elf2bb.c | 149 dprintf(("%04x sections, offset %08x\n", be16toh(eh->e_shnum), 167 for (i = 0; i < be16toh(eh->e_shnum); ++i) { 254 sect_offset = malloc(be16toh(eh->e_shnum) * sizeof(uint32_t)); 255 for (i = 0, l = 0; i < be16toh(eh->e_shnum); ++i) { 308 for (i = 0; i < be16toh(eh->e_shnum); ++i) { 319 for (n = 0; n < be16toh(eh->e_shnum); ++n) {
|
| /src/external/gpl3/binutils/usr.sbin/dbsym/ |
| dbsym.c | 302 * 16 16 e_shnum; # Number of section headers 367 int elftype, e_shnum, i, sh_size, rv = 1, shstridx; local 404 e_shnum = (ISELF64 405 ? bfd_get_16(abfd, e64_hdr.e_shnum) 406 : bfd_get_16(abfd, e32_hdr.e_shnum)); 407 sh_size = e_shnum * (ISELF64 ? sizeof(Elf64_External_Shdr) 436 for (i = 0; i < e_shnum; i++) {
|
| /src/external/gpl3/binutils.old/usr.sbin/dbsym/ |
| dbsym.c | 302 * 16 16 e_shnum; # Number of section headers 367 int elftype, e_shnum, i, sh_size, rv = 1, shstridx; local 404 e_shnum = (ISELF64 405 ? bfd_get_16(abfd, e64_hdr.e_shnum) 406 : bfd_get_16(abfd, e32_hdr.e_shnum)); 407 sh_size = e_shnum * (ISELF64 ? sizeof(Elf64_External_Shdr) 436 for (i = 0; i < e_shnum; i++) {
|
| /src/usr.sbin/lockstat/ |
| elf32.c | 129 for (i = 0; i < ehdr.e_shnum; i++, off += sizeof(symhdr)) { 136 if (i == ehdr.e_shnum || symhdr.sh_offset == 0)
|
| /src/sys/arch/zaurus/stand/zbsdmod/ |
| zbsdmod.c | 175 sz = elf->e_shnum * sizeof(Elf_Shdr); 187 for (havesyms = i = 0; i < elf->e_shnum; i++) 190 for (i = 0; i < elf->e_shnum; i++) { 216 sz = elf->e_shnum * sizeof(Elf_Shdr);
|
| /src/sys/arch/atari/stand/tostools/libtos/ |
| elf.c | 114 i = ehdr.e_shnum + 1; 131 kernsize += symsize + sizeof(ehdr) + ehdr.e_shnum*sizeof(Elf32_Shdr); 176 nhdrs = ehdr.e_shnum;
|