| /freebsd-13.1/stand/common/ |
| H A D | load_elf_obj.c | 148 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 || in __elfN() 242 shdrbytes = hdr->e_shnum * hdr->e_shentsize; in __elfN() 256 for (i = 0; i < hdr->e_shnum; i++) in __elfN() 258 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 280 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 298 if (symstrindex < 0 || symstrindex >= hdr->e_shnum || in __elfN() 309 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum || in __elfN() 321 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 347 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 483 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() [all …]
|
| H A D | load_elf.c | 158 CONVERT_FIELD(b, e_shnum, e); \ in elf_header_convert() 663 chunk = (size_t)ehdr->e_shnum * (size_t)ehdr->e_shentsize; 673 for (i = 0; i < ehdr->e_shnum; i++) 688 for (i = 0; i < ehdr->e_shnum; i++) { 709 for (i = 0; i < ehdr->e_shnum; i++) { 986 size = (size_t)ef.ehdr->e_shnum * (size_t)ef.ehdr->e_shentsize; 1005 for (i = 0, j = 0; i < ef.ehdr->e_shnum; i++) {
|
| /freebsd-13.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 | 180 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr() 185 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr()
|
| H A D | elf_types.m4 | 114 `e_shnum, HALF', 131 `e_shnum, HALF',
|
| /freebsd-13.1/sys/mips/mips/ |
| H A D | elf_trampoline.c | 134 sizeof(*shdr) * eh->e_shnum); in load_kernel() 136 if (eh->e_shnum * eh->e_shentsize != 0 && eh->e_shoff != 0) { in load_kernel() 137 for (i = 0; i < eh->e_shnum; i++) { in load_kernel()
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | nlist.c | 150 shdr_size = ehdr.e_shentsize * ehdr.e_shnum; in __elf_fdnlist() 171 for (i = 0; i < ehdr.e_shnum; i++) { in __elf_fdnlist() 243 ehdr.e_shnum); in __elf_fdnlist()
|
| /freebsd-13.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-13.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-13.1/sys/kern/ |
| H A D | kern_ctf.c | 120 nbytes = hdr->e_shnum * hdr->e_shentsize; in link_elf_ctf_get() 159 for (i = 0; i < hdr->e_shnum; i++) in link_elf_ctf_get() 164 if (i >= hdr->e_shnum) { in link_elf_ctf_get()
|
| H A D | link_elf_obj.c | 394 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 431 symstrindex >= hdr->e_shnum || in link_elf_link_preload() 433 shstrindex >= hdr->e_shnum || in link_elf_link_preload() 459 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 463 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 480 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 783 nbytes = hdr->e_shnum * hdr->e_shentsize; in link_elf_load_file() 805 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_load_file() 855 if (symstrindex < 0 || symstrindex > hdr->e_shnum || in link_elf_load_file() 928 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_load_file() [all …]
|
| /freebsd-13.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-13.1/sys/compat/linux/ |
| H A D | linux_vdso.c | 130 for (i = 0; i < ehdr->e_shnum; i++) { in __elfN() 201 for(i = 0; i < ehdr->e_shnum; i++) { in __elfN()
|
| /freebsd-13.1/cddl/contrib/opensolaris/lib/libctf/common/ |
| H A D | ctf_lib.c | 156 dst->e_shnum = src->e_shnum; in ehdr_to_gelf() 303 shnum = hdr.e64.e_shnum; in ctf_fdopen()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
| H A D | ELFHeader.cpp | 108 e_shnum = section_zero.sh_size; in ParseHeaderExtension() 147 e_shnum = e_shnum_hdr; in Parse()
|
| H A D | ELFHeader.h | 76 elf_word e_shnum; ///< Number of section header entries. member
|
| /freebsd-13.1/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | output.c | 501 secxlate = xmalloc(sizeof (int) * sehdr.e_shnum); in write_file() 502 for (srcidx = dstidx = 0; srcidx < sehdr.e_shnum; srcidx++) { in write_file() 536 for (srcidx = 1; srcidx < sehdr.e_shnum; srcidx++) { in write_file()
|
| /freebsd-13.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
|
| /freebsd-13.1/usr.bin/gcore/ |
| H A D | elfcore.c | 488 ehdr->e_shnum = 0; in elf_puthdr() 491 ehdr->e_shnum = 1; in elf_puthdr() 509 shdr->sh_size = ehdr->e_shnum; in elf_puthdr()
|
| /freebsd-13.1/contrib/elftoolchain/strings/ |
| H A D | strings.c | 292 if (elfhdr.e_shnum == 0 && elfhdr.e_type == ET_CORE) { in handle_elf()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
| H A D | ELF.h | 75 Elf32_Half e_shnum; // Number of entries in the section header table member 101 Elf64_Half e_shnum; member
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/InterfaceStub/ |
| H A D | ELFObjHandler.cpp | 256 ElfHeader.e_shnum = LastSection->Index + 1; in ELFStubBuilder() 262 return ElfHeader.e_shoff + ElfHeader.e_shnum * sizeof(Elf_Shdr); in getSize()
|