/freebsd/stand/common/ |
H A D | load_elf_obj.c | 144 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 || in __elfN() 239 shdrbytes = hdr->e_shnum * hdr->e_shentsize; in __elfN() 253 for (i = 0; i < hdr->e_shnum; i++) in __elfN() 255 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 277 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 295 if (symstrindex < 0 || symstrindex >= hdr->e_shnum || in __elfN() 306 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum || in __elfN() 318 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 344 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() 482 for (i = 0; i < hdr->e_shnum; i++) { in __elfN() [all …]
|
H A D | load_elf.c | 152 CONVERT_FIELD(b, e_shnum, e); \ in elf_header_convert() 708 chunk = (size_t)ehdr->e_shnum * (size_t)ehdr->e_shentsize; 718 for (i = 0; i < ehdr->e_shnum; i++) 733 for (i = 0; i < ehdr->e_shnum; i++) { 754 for (i = 0; i < ehdr->e_shnum; i++) { 1015 size = (size_t)ef.ehdr->e_shnum * (size_t)ef.ehdr->e_shentsize; 1034 for (i = 0, j = 0; i < ef.ehdr->e_shnum; i++) {
|
/freebsd/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/lib/libc/gen/ |
H A D | nlist.c | 146 shdr_size = ehdr.e_shentsize * ehdr.e_shnum; in __elf_fdnlist() 167 for (i = 0; i < ehdr.e_shnum; i++) { in __elf_fdnlist() 239 ehdr.e_shnum); in __elf_fdnlist()
|
/freebsd/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/usr.bin/gprof/ |
H A D | elf.c | 86 for (i = 1; i < h.e_shnum; i++) in elf_getnfile() 89 if (i == h.e_shnum) in elf_getnfile()
|
/freebsd/sys/kern/ |
H A D | kern_ctf.c | 125 nbytes = hdr->e_shnum * hdr->e_shentsize; in link_elf_ctf_get() 167 for (i = 0; i < hdr->e_shnum; i++) in link_elf_ctf_get() 172 if (i >= hdr->e_shnum) { in link_elf_ctf_get()
|
H A D | link_elf_obj.c | 401 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 438 symstrindex >= hdr->e_shnum || in link_elf_link_preload() 440 shstrindex >= hdr->e_shnum || in link_elf_link_preload() 466 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 470 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 487 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_link_preload() 815 nbytes = hdr->e_shnum * hdr->e_shentsize; in link_elf_load_file() 837 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_load_file() 887 if (symstrindex < 0 || symstrindex > hdr->e_shnum || in link_elf_load_file() 960 for (i = 0; i < hdr->e_shnum; i++) { in link_elf_load_file() [all …]
|
/freebsd/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/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/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/sys/sys/ |
H A D | elf32.h | 68 Elf32_Half e_shnum; /* Number of section header entries. */ member
|
H A D | elf64.h | 77 Elf64_Half e_shnum; /* Number of section header entries. */ member
|
/freebsd/sys/compat/linux/ |
H A D | linux_vdso.c | 123 for (i = 0; i < ehdr->e_shnum; i++) { in __elfN()
|
/freebsd/usr.bin/gcore/ |
H A D | elfcore.c | 505 ehdr->e_shnum = 0; in elf_puthdr() 508 ehdr->e_shnum = 1; in elf_puthdr() 526 shdr->sh_size = ehdr->e_shnum; in elf_puthdr()
|
/freebsd/sys/x86/xen/ |
H A D | pv.c | 234 for (i = 1; i < ehdr->e_shnum; i++) { in xen_pvh_parse_symtab()
|
/freebsd/contrib/elftoolchain/strings/ |
H A D | strings.c | 292 if (elfhdr.e_shnum == 0 && elfhdr.e_type == ET_CORE) { in handle_elf()
|
/freebsd/contrib/elftoolchain/size/ |
H A D | size.c | 540 if (elfhdr->e_shnum != 0 || elfhdr->e_type != ET_CORE) in handle_core() 644 if (elfhdr.e_shnum == 0 && elfhdr.e_type == ET_CORE) { in handle_elf()
|
/freebsd/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/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()
|