| /freebsd-12.1/stand/common/ |
| H A D | load_elf_obj.c | 126 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 || in __elfN() 209 shdrbytes = hdr->e_shnum * hdr->e_shentsize; in __elfN() 223 for (i = 0; i < hdr->e_shnum; i++) in __elfN() 225 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 245 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 265 if (symstrindex < 0 || symstrindex >= hdr->e_shnum || in __elfN() 276 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum || in __elfN() 288 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 314 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 450 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() [all …]
|
| H A D | load_elf.c | 146 CONVERT_FIELD(b, e_shnum, e); \ in elf_header_convert() 603 chunk = (size_t)ehdr->e_shnum * (size_t)ehdr->e_shentsize; in __elfN() 613 for (i = 0; i < ehdr->e_shnum; i++) in __elfN() 628 for (i = 0; i < ehdr->e_shnum; i++) { in __elfN() 649 for (i = 0; i < ehdr->e_shnum; i++) { in __elfN() 930 size = (size_t)ef.ehdr->e_shnum * (size_t)ef.ehdr->e_shentsize; in __elfN() 949 for (i = 0, j = 0; i < ef.ehdr->e_shnum; i++) { in __elfN()
|
| /freebsd-12.1/contrib/binutils/bfd/ |
| H A D | 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() 694 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() 737 if (i_ehdrp->e_shnum != 0) in elf_object_p() 746 num_sec = i_ehdrp->e_shnum; in elf_object_p() 799 if (i_ehdrp->e_shnum != 0) in elf_object_p() 1081 amt = i_ehdrp->e_shnum; in elf_write_shdrs_and_ehdr() [all …]
|
| /freebsd-12.1/contrib/elftoolchain/libelf/ |
| H A D | gelf_ehdr.c | 80 d->e_shnum = eh32->e_shnum; in gelf_getehdr() 163 eh32->e_shnum = s->e_shnum; in gelf_update_ehdr()
|
| H A D | 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()
|
| H A D | libelf_ehdr.c | 176 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr() 181 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr()
|
| H A D | elf_types.m4 | 114 `e_shnum, HALF', 131 `e_shnum, HALF',
|
| /freebsd-12.1/sys/mips/mips/ |
| H A D | elf_trampoline.c | 135 sizeof(*shdr) * eh->e_shnum); in load_kernel() 137 if (eh->e_shnum * eh->e_shentsize != 0 && eh->e_shoff != 0) { in load_kernel() 138 for (i = 0; i < eh->e_shnum; i++) { in load_kernel()
|
| /freebsd-12.1/contrib/binutils/binutils/ |
| H A D | readelf.c | 4514 >= elf_header.e_shnum) in process_section_groups() 4710 i < elf_header.e_shnum; in process_relocs() 4739 < elf_header.e_shnum) in process_relocs() 5113 i = elf_header.e_shnum; in ia64_process_unwind() 6452 < elf_header.e_shnum in process_version_sections() 6545 < elf_header.e_shnum in process_version_sections() 6637 >= elf_header.e_shnum) in process_version_sections() 6705 >= elf_header.e_shnum in process_version_sections() 7149 i < elf_header.e_shnum; in process_symbol_table() 9510 elf_header.e_shnum = BYTE_GET (ehdr32.e_shnum); in get_file_header() [all …]
|
| /freebsd-12.1/contrib/file/src/ |
| H A D | elfclass.h | 55 shnum = elf_getu16(swap, elfhdr.e_shnum); 65 shnum = elf_getu16(swap, elfhdr.e_shnum);
|
| H A D | readelf.h | 105 Elf32_Half e_shnum; member 122 Elf64_Half e_shnum; member
|
| /freebsd-12.1/contrib/binutils/include/elf/ |
| H A D | 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
|
| H A D | internal.h | 57 unsigned int e_shnum; /* Section header table entry count */ member
|
| /freebsd-12.1/usr.bin/gprof/ |
| H A D | elf.c | 92 for (i = 1; i < h.e_shnum; i++) in elf_getnfile() 95 if (i == h.e_shnum) in elf_getnfile()
|
| /freebsd-12.1/lib/libc/gen/ |
| H A D | 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()
|
| /freebsd-12.1/sys/kern/ |
| H A D | kern_ctf.c | 139 nbytes = hdr->e_shnum * hdr->e_shentsize; 178 for (i = 0; i < hdr->e_shnum; i++) 183 if (i >= hdr->e_shnum) {
|
| H A D | link_elf_obj.c | 258 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 293 symstrindex >= hdr->e_shnum || in link_elf_link_preload() 295 shstrindex >= hdr->e_shnum || in link_elf_link_preload() 321 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 325 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 342 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 610 nbytes = hdr->e_shnum * hdr->e_shentsize; in link_elf_load_file() 632 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_load_file() 680 if (symstrindex < 0 || symstrindex > hdr->e_shnum || in link_elf_load_file() 753 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_load_file() [all …]
|
| /freebsd-12.1/usr.sbin/kldxref/ |
| H A D | ef_obj.c | 402 nbytes = hdr->e_shnum * hdr->e_shentsize; in ef_obj_open() 417 for (i = 0; i < hdr->e_shnum; i++) { in ef_obj_open() 447 if (symstrindex < 0 || symstrindex > hdr->e_shnum || in ef_obj_open() 499 for (i = 0; i < hdr->e_shnum; i++) { in ef_obj_open() 529 for (i = 0; i < hdr->e_shnum; i++) { in ef_obj_open()
|
| /freebsd-12.1/sys/compat/linux/ |
| H A D | 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()
|
| /freebsd-12.1/sys/arm/arm/ |
| H A D | elf_trampoline.c | 325 sizeof(*shdr) * eh->e_shnum); in load_kernel() 326 if (eh->e_shnum * eh->e_shentsize != 0 && in load_kernel() 328 for (i = 0; i < eh->e_shnum; i++) { in load_kernel()
|
| /freebsd-12.1/cddl/contrib/opensolaris/lib/libctf/common/ |
| H A D | ctf_lib.c | 155 dst->e_shnum = src->e_shnum; in ehdr_to_gelf() 301 shnum = hdr.e64.e_shnum; in ctf_fdopen()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ |
| H A D | ELFHeader.cpp | 111 e_shnum = section_zero.sh_size; in ParseHeaderExtension() 150 e_shnum = e_shnum_hdr; in Parse()
|
| /freebsd-12.1/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | 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()
|
| /freebsd-12.1/sys/sys/ |
| H A D | elf32.h | 70 Elf32_Half e_shnum; /* Number of section header entries. */ member
|
| H A D | elf64.h | 79 Elf64_Half e_shnum; /* Number of section header entries. */ member
|