Searched refs:e_shnum (Results 1 - 25 of 50) sorted by relevance

12

/freebsd-13-stable/contrib/elftoolchain/libelf/
H A Dgelf_ehdr.c80 d->e_shnum = eh32->e_shnum;
163 eh32->e_shnum = s->e_shnum;
H A Dlibelf_extended.c70 ((Elf32_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU;
72 ((Elf64_Ehdr *) eh)->e_shnum = shnum & 0xFFFFU;
H A Dlibelf_ehdr.c180 shnum = ((Elf32_Ehdr *) ehdr)->e_shnum;
185 shnum = ((Elf64_Ehdr *) ehdr)->e_shnum;
/freebsd-13-stable/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 in struct:__anon753
122 Elf64_Half e_shnum; member in struct:__anon754
/freebsd-13-stable/sys/mips/mips/
H A Delf_trampoline.c134 sizeof(*shdr) * eh->e_shnum);
136 if (eh->e_shnum * eh->e_shentsize != 0 && eh->e_shoff != 0) {
137 for (i = 0; i < eh->e_shnum; i++) {
/freebsd-13-stable/stand/common/
H A Dload_elf_obj.c148 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 ||
242 shdrbytes = hdr->e_shnum * hdr->e_shentsize;
256 for (i = 0; i < hdr->e_shnum; i++)
258 for (i = 0; i < hdr->e_shnum; i++) {
280 for (i = 0; i < hdr->e_shnum; i++) {
300 if (symstrindex < 0 || symstrindex >= hdr->e_shnum ||
311 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum ||
323 for (i = 0; i < hdr->e_shnum; i++) {
349 for (i = 0; i < hdr->e_shnum; i++) {
485 for (i = 0; i < hdr->e_shnum;
[all...]
H A Dload_elf.c158 CONVERT_FIELD(b, e_shnum, e); \
647 chunk = (size_t)ehdr->e_shnum * (size_t)ehdr->e_shentsize;
657 for (i = 0; i < ehdr->e_shnum; i++)
672 for (i = 0; i < ehdr->e_shnum; i++) {
693 for (i = 0; i < ehdr->e_shnum; i++) {
988 size = (size_t)ef.ehdr->e_shnum * (size_t)ef.ehdr->e_shentsize;
1007 for (i = 0, j = 0; i < ef.ehdr->e_shnum; i++) {
/freebsd-13-stable/usr.bin/gprof/
H A Delf.c92 for (i = 1; i < h.e_shnum; i++)
95 if (i == h.e_shnum)
/freebsd-13-stable/lib/libc/gen/
H A Dnlist.c150 shdr_size = ehdr.e_shentsize * ehdr.e_shnum;
171 for (i = 0; i < ehdr.e_shnum; i++) {
243 ehdr.e_shnum);
/freebsd-13-stable/sys/kern/
H A Dkern_ctf.c125 nbytes = hdr->e_shnum * hdr->e_shentsize;
164 for (i = 0; i < hdr->e_shnum; i++)
169 if (i >= hdr->e_shnum) {
H A Dlink_elf_obj.c382 for (i = 0; i < hdr->e_shnum; i++) {
419 symstrindex >= hdr->e_shnum ||
421 shstrindex >= hdr->e_shnum ||
447 for (i = 0; i < hdr->e_shnum; i++) {
451 for (i = 0; i < hdr->e_shnum; i++) {
468 for (i = 0; i < hdr->e_shnum; i++) {
760 nbytes = hdr->e_shnum * hdr->e_shentsize;
782 for (i = 0; i < hdr->e_shnum; i++) {
832 if (symstrindex < 0 || symstrindex > hdr->e_shnum ||
905 for (i = 0; i < hdr->e_shnum;
[all...]
/freebsd-13-stable/sys/compat/linux/
H A Dlinux_vdso.c130 for (i = 0; i < ehdr->e_shnum; i++) {
201 for(i = 0; i < ehdr->e_shnum; i++) {
/freebsd-13-stable/usr.sbin/kldxref/
H A Def_obj.c402 nbytes = hdr->e_shnum * hdr->e_shentsize;
417 for (i = 0; i < hdr->e_shnum; i++) {
447 if (symstrindex < 0 || symstrindex > hdr->e_shnum ||
499 for (i = 0; i < hdr->e_shnum; i++) {
529 for (i = 0; i < hdr->e_shnum; i++) {
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c156 dst->e_shnum = src->e_shnum;
302 shnum = hdr.e64.e_shnum;
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h76 elf_word e_shnum; ///< Number of section header entries. member in struct:elf::ELFHeader
H A DELFHeader.cpp108 e_shnum = section_zero.sh_size;
140 // Read e_ehsize, e_phentsize, e_phnum, e_shentsize, e_shnum and e_shstrndx.
144 // Initialize e_phnum, e_shnum, and e_shstrndx with the values read from the
147 e_shnum = e_shnum_hdr;
/freebsd-13-stable/sys/sys/
H A Delf32.h70 Elf32_Half e_shnum; /* Number of section header entries. */ member in struct:__anon15799
H A Delf64.h79 Elf64_Half e_shnum; /* Number of section header entries. */ member in struct:__anon15817
/freebsd-13-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c502 secxlate = xmalloc(sizeof (int) * sehdr.e_shnum);
503 for (srcidx = dstidx = 0; srcidx < sehdr.e_shnum; srcidx++) {
538 for (srcidx = 1; srcidx < sehdr.e_shnum; srcidx++) {
/freebsd-13-stable/contrib/elftoolchain/strings/
H A Dstrings.c292 if (elfhdr.e_shnum == 0 && elfhdr.e_type == ET_CORE) {
/freebsd-13-stable/usr.bin/gcore/
H A Delfcore.c488 ehdr->e_shnum = 0;
491 ehdr->e_shnum = 1;
509 shdr->sh_size = ehdr->e_shnum;
/freebsd-13-stable/stand/i386/isoboot/
H A Disoboot.c398 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) {
/freebsd-13-stable/stand/mips/beri/boot2/
H A Dboot2.c361 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) {
/freebsd-13-stable/usr.sbin/crunch/crunchide/
H A Dexec_elf32.c248 shnum = xe16toh(ehdr.e_shnum);

Completed in 302 milliseconds

12