Home
last modified time | relevance | path

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

123

/NextBSD/sys/boot/common/
HDload_elf_obj.c126 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 …]
HDload_elf.c454 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/
HDelfcode.h249 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/
HDgelf_ehdr.c80 d->e_shnum = eh32->e_shnum; in gelf_getehdr()
163 eh32->e_shnum = s->e_shnum; in gelf_update_ehdr()
HDlibelf_extended.c70 ((Elf32_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; in _libelf_setshnum()
72 ((Elf64_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; in _libelf_setshnum()
HDlibelf_ehdr.c179 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr()
184 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr()
HDelf_types.m4114 `e_shnum, HALF',
131 `e_shnum, HALF',
/NextBSD/sys/mips/mips/
HDelf_trampoline.c133 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/
HDreadelf.c582 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/
HDelfclass.h55 shnum = elf_getu16(swap, elfhdr.e_shnum);
65 shnum = elf_getu16(swap, elfhdr.e_shnum);
HDreadelf.h69 Elf32_Half e_shnum; member
86 Elf64_Half e_shnum; member
/NextBSD/contrib/binutils/include/elf/
HDexternal.h53 unsigned char e_shnum[2]; /* Section header table entry count */ member
70 unsigned char e_shnum[2]; /* Section header table entry count */ member
HDinternal.h57 unsigned int e_shnum; /* Section header table entry count */ member
/NextBSD/usr.bin/gprof/
HDelf.c90 for (i = 1; i < h.e_shnum; i++) in elf_getnfile()
93 if (i == h.e_shnum) in elf_getnfile()
/NextBSD/sys/kern/
HDlink_elf_obj.c256 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 …]
HDkern_ctf.c137 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/
HDnlist.c259 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/
HDef_obj.c374 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/
HDlinux_vdso.c126 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/
HDctf_lib.c155 dst->e_shnum = src->e_shnum; in ehdr_to_gelf()
301 shnum = hdr.e64.e_shnum; in ctf_fdopen()
/NextBSD/sys/arm/arm/
HDelf_trampoline.c510 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/
HDoutput.c502 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/
HDelf32.h68 Elf32_Half e_shnum; /* Number of section header entries. */ member
HDelf64.h77 Elf64_Half e_shnum; /* Number of section header entries. */ member
/NextBSD/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/
HDELFHeader.h73 elf_half e_shnum; ///< Number of section header entries. member

123