Home
last modified time | relevance | path

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

123

/freebsd/stand/common/
H A Dload_elf_obj.c144 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 Dload_elf.c152 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 Dgelf_ehdr.c80 d->e_shnum = eh32->e_shnum; in gelf_getehdr()
163 eh32->e_shnum = s->e_shnum; in gelf_update_ehdr()
H A Dlibelf_extended.c70 ((Elf32_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; in _libelf_setshnum()
72 ((Elf64_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU; in _libelf_setshnum()
H A Dlibelf_ehdr.c180 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr()
185 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum; in _libelf_ehdr()
H A Delf_types.m4114 `e_shnum, HALF',
131 `e_shnum, HALF',
/freebsd/lib/libc/gen/
H A Dnlist.c146 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 Delfclass.h55 shnum = elf_getu16(swap, elfhdr.e_shnum);
65 shnum = elf_getu16(swap, elfhdr.e_shnum);
H A Dreadelf.h105 Elf32_Half e_shnum; member
122 Elf64_Half e_shnum; member
/freebsd/usr.bin/gprof/
H A Delf.c86 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 Dkern_ctf.c125 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 Dlink_elf_obj.c401 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 Dctf_lib.c156 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 DELFHeader.cpp108 e_shnum = section_zero.sh_size; in ParseHeaderExtension()
147 e_shnum = e_shnum_hdr; in Parse()
H A DELFHeader.h76 elf_word e_shnum; ///< Number of section header entries. member
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c501 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 Delf32.h68 Elf32_Half e_shnum; /* Number of section header entries. */ member
H A Delf64.h77 Elf64_Half e_shnum; /* Number of section header entries. */ member
/freebsd/sys/compat/linux/
H A Dlinux_vdso.c123 for (i = 0; i < ehdr->e_shnum; i++) { in __elfN()
/freebsd/usr.bin/gcore/
H A Delfcore.c505 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 Dpv.c234 for (i = 1; i < ehdr->e_shnum; i++) { in xen_pvh_parse_symtab()
/freebsd/contrib/elftoolchain/strings/
H A Dstrings.c292 if (elfhdr.e_shnum == 0 && elfhdr.e_type == ET_CORE) { in handle_elf()
/freebsd/contrib/elftoolchain/size/
H A Dsize.c540 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 DELF.h75 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 DELFObjHandler.cpp256 ElfHeader.e_shnum = LastSection->Index + 1; in ELFStubBuilder()
262 return ElfHeader.e_shoff + ElfHeader.e_shnum * sizeof(Elf_Shdr); in getSize()

123