| /NextBSD/sys/boot/common/ |
| HD | load_elf_obj.c | 126 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 || in __elfN() 202 shdrbytes = hdr->e_shnum * hdr->e_shentsize; in __elfN() 216 for (i = 0; i < hdr->e_shnum; i++) in __elfN() 218 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 233 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 253 if (symstrindex < 0 || symstrindex >= hdr->e_shnum || in __elfN() 264 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum || in __elfN() 276 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 300 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 436 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() [all …]
|
| HD | load_elf.c | 454 chunk = ehdr->e_shnum * ehdr->e_shentsize; in __elfN() 474 for (i = 0; i < ehdr->e_shnum; i++) { in __elfN() 494 for (i = 0; i < ehdr->e_shnum; i++) { in __elfN() 745 size = ef.ehdr->e_shnum * ef.ehdr->e_shentsize; in __elfN() 764 for (i = 0, j = 0; i < ef.ehdr->e_shnum; i++) { in __elfN()
|
| /NextBSD/contrib/binutils/bfd/ |
| HD | elfcode.h | 249 dst->e_shnum = H_GET_16 (abfd, src->e_shnum); in elf_swap_ehdr_in() 279 tmp = src->e_shnum; in elf_swap_ehdr_out() 282 H_PUT_16 (abfd, tmp, dst->e_shnum); in elf_swap_ehdr_out() 577 if (i_ehdrp->e_shentsize != sizeof (x_shdr) && i_ehdrp->e_shnum != 0) in elf_object_p() 581 if (i_ehdrp->e_shoff == 0 && i_ehdrp->e_shnum != 0) in elf_object_p() 692 if (i_ehdrp->e_shnum == SHN_UNDEF) in elf_object_p() 694 i_ehdrp->e_shnum = i_shdr.sh_size; in elf_object_p() 695 if (i_ehdrp->e_shnum != i_shdr.sh_size in elf_object_p() 696 || i_ehdrp->e_shnum == 0) in elf_object_p() 710 if (i_ehdrp->e_shnum != 1) in elf_object_p() [all …]
|
| /NextBSD/contrib/elftoolchain/libelf/ |
| HD | gelf_ehdr.c | 80 d->e_shnum = eh32->e_shnum; in gelf_getehdr() 163 eh32->e_shnum = s->e_shnum; in gelf_update_ehdr()
|
| HD | libelf_extended.c | 70 ((Elf32_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; in _libelf_setshnum() 72 ((Elf64_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; in _libelf_setshnum()
|
| HD | libelf_ehdr.c | 179 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr() 184 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr()
|
| HD | elf_types.m4 | 114 `e_shnum, HALF', 131 `e_shnum, HALF',
|
| /NextBSD/sys/mips/mips/ |
| HD | elf_trampoline.c | 133 sizeof(*shdr) * eh->e_shnum); in load_kernel() 135 if (eh->e_shnum * eh->e_shentsize != 0 && eh->e_shoff != 0) { in load_kernel() 136 for (i = 0; i < eh->e_shnum; i++) { in load_kernel()
|
| /NextBSD/contrib/binutils/binutils/ |
| HD | readelf.c | 582 for (i = 0; i < elf_header.e_shnum; i++) in find_section() 3232 (long) elf_header.e_shnum); in process_file_header() 3233 if (section_headers != NULL && elf_header.e_shnum == 0) in process_file_header() 3241 && (elf_header.e_shstrndx >= elf_header.e_shnum in process_file_header() 3250 if (elf_header.e_shnum == 0) in process_file_header() 3251 elf_header.e_shnum = section_headers[0].sh_size; in process_file_header() 3255 && (elf_header.e_shstrndx >= elf_header.e_shnum in process_file_header() 3582 for (j = 1; j < elf_header.e_shnum; j++, section++) in process_program_headers() 4017 if (elf_header.e_shnum == 0) in process_section_headers() 4027 elf_header.e_shnum, (unsigned long) elf_header.e_shoff); in process_section_headers() [all …]
|
| /NextBSD/contrib/file/src/ |
| HD | elfclass.h | 55 shnum = elf_getu16(swap, elfhdr.e_shnum); 65 shnum = elf_getu16(swap, elfhdr.e_shnum);
|
| HD | readelf.h | 69 Elf32_Half e_shnum; member 86 Elf64_Half e_shnum; member
|
| /NextBSD/contrib/binutils/include/elf/ |
| HD | external.h | 53 unsigned char e_shnum[2]; /* Section header table entry count */ member 70 unsigned char e_shnum[2]; /* Section header table entry count */ member
|
| HD | internal.h | 57 unsigned int e_shnum; /* Section header table entry count */ member
|
| /NextBSD/usr.bin/gprof/ |
| HD | elf.c | 90 for (i = 1; i < h.e_shnum; i++) in elf_getnfile() 93 if (i == h.e_shnum) in elf_getnfile()
|
| /NextBSD/sys/kern/ |
| HD | link_elf_obj.c | 256 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 277 symstrindex >= hdr->e_shnum || in link_elf_link_preload() 279 shstrindex >= hdr->e_shnum || in link_elf_link_preload() 305 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 309 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 326 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 551 nbytes = hdr->e_shnum * hdr->e_shentsize; in link_elf_load_file() 572 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_load_file() 606 if (symstrindex < 0 || symstrindex > hdr->e_shnum || in link_elf_load_file() 678 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_load_file() [all …]
|
| HD | kern_ctf.c | 137 nbytes = hdr->e_shnum * hdr->e_shentsize; in link_elf_ctf_get() 176 for (i = 0; i < hdr->e_shnum; i++) in link_elf_ctf_get() 181 if (i >= hdr->e_shnum) { in link_elf_ctf_get()
|
| /NextBSD/lib/libc/gen/ |
| HD | nlist.c | 259 shdr_size = ehdr.e_shentsize * ehdr.e_shnum; in __elf_fdnlist() 280 for (i = 0; i < ehdr.e_shnum; i++) { in __elf_fdnlist() 352 ehdr.e_shnum); in __elf_fdnlist()
|
| /NextBSD/usr.sbin/kldxref/ |
| HD | ef_obj.c | 374 nbytes = hdr->e_shnum * hdr->e_shentsize; in ef_obj_open() 389 for (i = 0; i < hdr->e_shnum; i++) { in ef_obj_open() 419 if (symstrindex < 0 || symstrindex > hdr->e_shnum || in ef_obj_open() 471 for (i = 0; i < hdr->e_shnum; i++) { in ef_obj_open() 501 for (i = 0; i < hdr->e_shnum; i++) { in ef_obj_open()
|
| /NextBSD/sys/compat/linux/ |
| HD | linux_vdso.c | 126 for (i = 0; i < ehdr->e_shnum; i++) { in __elfN() 197 for(i = 0; i < ehdr->e_shnum; i++) { in __elfN()
|
| /NextBSD/cddl/contrib/opensolaris/lib/libctf/common/ |
| HD | ctf_lib.c | 155 dst->e_shnum = src->e_shnum; in ehdr_to_gelf() 301 shnum = hdr.e64.e_shnum; in ctf_fdopen()
|
| /NextBSD/sys/arm/arm/ |
| HD | elf_trampoline.c | 510 sizeof(*shdr) * eh->e_shnum); in load_kernel() 511 if (eh->e_shnum * eh->e_shentsize != 0 && in load_kernel() 513 for (i = 0; i < eh->e_shnum; i++) { in load_kernel()
|
| /NextBSD/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| HD | output.c | 502 secxlate = xmalloc(sizeof (int) * sehdr.e_shnum); in write_file() 503 for (srcidx = dstidx = 0; srcidx < sehdr.e_shnum; srcidx++) { in write_file() 538 for (srcidx = 1; srcidx < sehdr.e_shnum; srcidx++) { in write_file()
|
| /NextBSD/sys/sys/ |
| HD | elf32.h | 68 Elf32_Half e_shnum; /* Number of section header entries. */ member
|
| HD | elf64.h | 77 Elf64_Half e_shnum; /* Number of section header entries. */ member
|
| /NextBSD/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ |
| HD | ELFHeader.h | 73 elf_half e_shnum; ///< Number of section header entries. member
|