e_shnum            72 arch/alpha/kernel/module.c 	esechdrs = sechdrs + hdr->e_shnum;
e_shnum           193 arch/arm/kernel/module-plts.c 	Elf32_Shdr *s, *sechdrs_end = sechdrs + ehdr->e_shnum;
e_shnum           333 arch/arm/kernel/module.c 	for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++)
e_shnum           349 arch/arm/kernel/module.c 	const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum;
e_shnum           123 arch/arm/kernel/vdso.c 	for (i = 1; i < ehdr->e_shnum; i++) {
e_shnum           268 arch/arm64/kernel/module-plts.c 	for (i = 0; i < ehdr->e_shnum; i++) {
e_shnum           290 arch/arm64/kernel/module-plts.c 	for (i = 0; i < ehdr->e_shnum; i++) {
e_shnum           480 arch/arm64/kernel/module.c 	for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) {
e_shnum            35 arch/hexagon/kernel/module.c 	for (i = 0; i < hdr->e_shnum; i++) {
e_shnum           427 arch/ia64/kernel/module.c 	Elf64_Shdr *s, *sechdrs_end = sechdrs + ehdr->e_shnum;
e_shnum           182 arch/mips/boot/elf2ecoff.c 	e->e_shnum = swab16(e->e_shnum);
e_shnum           336 arch/mips/boot/elf2ecoff.c 				     ex.e_shnum * sizeof(Elf32_Shdr),
e_shnum           339 arch/mips/boot/elf2ecoff.c 		convert_elf_shdrs(sh, ex.e_shnum);
e_shnum            97 arch/mips/boot/tools/relocs.c 	if (shndx < ehdr.e_shnum)
e_shnum           112 arch/mips/boot/tools/relocs.c 	for (i = 0; i < ehdr.e_shnum; i++)
e_shnum           235 arch/mips/boot/tools/relocs.c 	ehdr.e_shnum     = elf_half_to_cpu(ehdr.e_shnum);
e_shnum           256 arch/mips/boot/tools/relocs.c 	if (ehdr.e_shstrndx >= ehdr.e_shnum)
e_shnum           265 arch/mips/boot/tools/relocs.c 	secs = calloc(ehdr.e_shnum, sizeof(struct section));
e_shnum           267 arch/mips/boot/tools/relocs.c 		die("Unable to allocate %d section headers\n", ehdr.e_shnum);
e_shnum           272 arch/mips/boot/tools/relocs.c 	for (i = 0; i < ehdr.e_shnum; i++) {
e_shnum           278 arch/mips/boot/tools/relocs.c 			    i, ehdr.e_shnum, strerror(errno));
e_shnum           289 arch/mips/boot/tools/relocs.c 		if (sec->shdr.sh_link < ehdr.e_shnum)
e_shnum           298 arch/mips/boot/tools/relocs.c 	for (i = 0; i < ehdr.e_shnum; i++) {
e_shnum           323 arch/mips/boot/tools/relocs.c 	for (i = 0; i < ehdr.e_shnum; i++) {
e_shnum           366 arch/mips/boot/tools/relocs.c 	for (i = 0; i < ehdr.e_shnum; i++) {
e_shnum           412 arch/mips/boot/tools/relocs.c 	for (i = 0; i < ehdr.e_shnum; i++) {
e_shnum           424 arch/mips/boot/tools/relocs.c 			    i, ehdr.e_shnum, strerror(errno));
e_shnum           438 arch/mips/boot/tools/relocs.c 			    i, ehdr.e_shnum, strerror(errno));
e_shnum           473 arch/mips/boot/tools/relocs.c 	for (i = 0; i < ehdr.e_shnum; i++) {
e_shnum           441 arch/mips/kernel/module.c 	for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
e_shnum           196 arch/mips/kernel/vpe.c 	for (i = 0; i < hdr->e_shnum; i++)
e_shnum           200 arch/mips/kernel/vpe.c 		for (i = 0; i < hdr->e_shnum; ++i) {
e_shnum           605 arch/mips/kernel/vpe.c 	if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr)) {
e_shnum           620 arch/mips/kernel/vpe.c 		for (i = 1; i < hdr->e_shnum; i++) {
e_shnum           651 arch/mips/kernel/vpe.c 		for (i = 0; i < hdr->e_shnum; i++) {
e_shnum           672 arch/mips/kernel/vpe.c 				 hdr->e_shnum, &mod);
e_shnum           675 arch/mips/kernel/vpe.c 		for (i = 1; i < hdr->e_shnum; i++) {
e_shnum           680 arch/mips/kernel/vpe.c 			if (info >= hdr->e_shnum)
e_shnum           712 arch/mips/kernel/vpe.c 		for (i = 0; i < hdr->e_shnum; i++) {
e_shnum            16 arch/mips/vdso/genvdso.h 	sh_count = swap_uint16(ehdr->e_shnum);
e_shnum            70 arch/mips/vdso/genvdso.h 	sh_count = swap_uint16(ehdr->e_shnum);
e_shnum           306 arch/parisc/kernel/module.c 	len = hdr->e_shnum * sizeof(me->arch.section[0]);
e_shnum           311 arch/parisc/kernel/module.c 	for (i = 1; i < hdr->e_shnum; i++) {
e_shnum           888 arch/parisc/kernel/module.c 	for (i = 1; i < hdr->e_shnum; i++) {
e_shnum           941 arch/parisc/kernel/module.c 	for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
e_shnum            68 arch/powerpc/boot/elf.h 	Elf32_Half e_shnum;
e_shnum            85 arch/powerpc/boot/elf.h 	Elf64_Half e_shnum;
e_shnum           866 arch/powerpc/kernel/fadump.c 	elf->e_shnum = 0;
e_shnum            28 arch/powerpc/kernel/module.c 	for (i = 1; i < hdr->e_shnum; i++)
e_shnum            97 arch/powerpc/kernel/module_32.c 	for (i = 1; i < hdr->e_shnum; i++) {
e_shnum           142 arch/powerpc/kernel/module_32.c 	for (i = 0; i < hdr->e_shnum; i++) {
e_shnum           253 arch/powerpc/kernel/module_64.c 	for (i = 1; i < hdr->e_shnum; i++) {
e_shnum           346 arch/powerpc/kernel/module_64.c 	for (i = 1; i < hdr->e_shnum; i++) {
e_shnum           244 arch/powerpc/kernel/vdso.c 	for (i = 1; i < ehdr->e_shnum; i++) {
e_shnum           349 arch/powerpc/kernel/vdso.c 	for (i = 1; i < ehdr->e_shnum; i++) {
e_shnum           170 arch/powerpc/oprofile/cell/vma_map.c 	for (i = 0; i < ehdr.e_shnum; i++) {
e_shnum           374 arch/powerpc/platforms/powernv/opal-core.c 	elf->e_shnum = 0;
e_shnum           100 arch/riscv/kernel/module-sections.c 	for (i = 0; i < ehdr->e_shnum; i++) {
e_shnum           123 arch/riscv/kernel/module-sections.c 	for (i = 0; i < ehdr->e_shnum; i++) {
e_shnum           290 arch/s390/kernel/machine_kexec_file.c 		if (sym->st_shndx >= pi->ehdr->e_shnum &&
e_shnum           120 arch/s390/kernel/module.c 	for (i = 0; i < hdr->e_shnum; i++)
e_shnum           153 arch/s390/kernel/module.c 	for (i = 0; i < hdr->e_shnum; i++) {
e_shnum           466 arch/s390/kernel/module.c 	for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
e_shnum          1098 arch/sh/kernel/dwarf.c 	for (i = 1; i < hdr->e_shnum; i++) {
e_shnum          1109 arch/sh/kernel/dwarf.c 	if (i != hdr->e_shnum) {
e_shnum            66 arch/sparc/kernel/module.c 		if (symidx == hdr->e_shnum-1) {
e_shnum           190 arch/sparc/kernel/module.c 	for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
e_shnum            65 arch/sparc/vdso/vdso2c.h 	for (i = 0; i < GET_BE(&hdr->e_shnum); i++) {
e_shnum            77 arch/sparc/vdso/vma.c 	for (i = 1; i < e->hdr->e_shnum; i++) {
e_shnum           145 arch/sparc/vdso/vma.c 	for (i = 1; i < e->hdr->e_shnum; i++) {
e_shnum            72 arch/x86/entry/vdso/vdso2c.h 	for (i = 0; i < GET_LE(&hdr->e_shnum); i++) {
e_shnum            29 arch/x86/kernel/livepatch.c 	for (s = info->sechdrs; s < info->sechdrs + info->hdr.e_shnum; s++) {
e_shnum           565 arch/x86/kernel/machine_kexec_64.c 		else if (sym->st_shndx >= pi->ehdr->e_shnum) {
e_shnum           228 arch/x86/kernel/module.c 	for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
e_shnum           368 arch/x86/tools/relocs.c 	ehdr.e_shnum     = elf_half_to_cpu(ehdr.e_shnum);
e_shnum           371 arch/x86/tools/relocs.c 	shnum = ehdr.e_shnum;
e_shnum           216 drivers/remoteproc/remoteproc_elf_loader.c 	for (i = 0; i < ehdr->e_shnum; i++, shdr++) {
e_shnum          2166 fs/binfmt_elf.c 	elf->e_shnum = 1;
e_shnum          2172 fs/binfmt_elf.c 	shdr4extnum->sh_size = elf->e_shnum;
e_shnum          1310 fs/binfmt_elf_fdpic.c 	elf->e_shnum = 0;
e_shnum          1479 fs/binfmt_elf_fdpic.c 	elf->e_shnum = 1;
e_shnum          1485 fs/binfmt_elf_fdpic.c 	shdr4extnum->sh_size = elf->e_shnum;
e_shnum           217 include/uapi/linux/elf.h   Elf32_Half	e_shnum;
e_shnum           234 include/uapi/linux/elf.h   Elf64_Half e_shnum;
e_shnum            68 kernel/kexec_elf.c 	} else if (ehdr->e_shnum > 0 &&
e_shnum            97 kernel/kexec_elf.c 	if (ehdr->e_shoff > 0 && ehdr->e_shnum > 0) {
e_shnum           104 kernel/kexec_elf.c 		shdr_size = sizeof(struct elf_shdr) * ehdr->e_shnum;
e_shnum           157 kernel/kexec_elf.c 	ehdr->e_shnum     = elf16_to_cpu(ehdr, buf_ehdr->e_shnum);
e_shnum           844 kernel/kexec_file.c 	for (i = 0; i < pi->ehdr->e_shnum; i++) {
e_shnum           904 kernel/kexec_file.c 	sechdrs = vzalloc(array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum));
e_shnum           908 kernel/kexec_file.c 	       pi->ehdr->e_shnum * sizeof(Elf_Shdr));
e_shnum           915 kernel/kexec_file.c 	for (i = 0; i < pi->ehdr->e_shnum; i++) {
e_shnum           959 kernel/kexec_file.c 	for (i = 0; i < pi->ehdr->e_shnum; i++) {
e_shnum           976 kernel/kexec_file.c 		if (relsec->sh_info >= pi->ehdr->e_shnum ||
e_shnum           977 kernel/kexec_file.c 		    relsec->sh_link >= pi->ehdr->e_shnum)
e_shnum           990 kernel/kexec_file.c 		if (symtab->sh_link >= pi->ehdr->e_shnum)
e_shnum          1076 kernel/kexec_file.c 	for (i = 0; i < ehdr->e_shnum; i++) {
e_shnum          1080 kernel/kexec_file.c 		if (sechdrs[i].sh_link >= ehdr->e_shnum)
e_shnum          1095 kernel/kexec_file.c 			    syms[k].st_shndx >= ehdr->e_shnum) {
e_shnum           262 kernel/livepatch/core.c 	for (i = 1; i < pmod->klp_info->hdr.e_shnum; i++) {
e_shnum           348 kernel/module.c 	for (i = 1; i < info->hdr->e_shnum; i++) {
e_shnum          1547 kernel/module.c 	for (i = 0; i < info->hdr->e_shnum; i++)
e_shnum          1564 kernel/module.c 	for (i = 0; i < info->hdr->e_shnum; i++) {
e_shnum          1649 kernel/module.c 	for (i = 0; i < info->hdr->e_shnum; i++)
e_shnum          1664 kernel/module.c 	for (loaded = i = 0; i < info->hdr->e_shnum; ++i) {
e_shnum          2117 kernel/module.c 	size = sizeof(*info->sechdrs) * info->hdr->e_shnum;
e_shnum          2369 kernel/module.c 	for (i = 1; i < info->hdr->e_shnum; i++) {
e_shnum          2373 kernel/module.c 		if (infosec >= info->hdr->e_shnum)
e_shnum          2434 kernel/module.c 	for (i = 0; i < info->hdr->e_shnum; i++)
e_shnum          2439 kernel/module.c 		for (i = 0; i < info->hdr->e_shnum; ++i) {
e_shnum          2472 kernel/module.c 		for (i = 0; i < info->hdr->e_shnum; ++i) {
e_shnum          2710 kernel/module.c 		    is_core_symbol(src+i, info->sechdrs, info->hdr->e_shnum,
e_shnum          2774 kernel/module.c 		    is_core_symbol(src+i, info->sechdrs, info->hdr->e_shnum,
e_shnum          2828 kernel/module.c 	for (i = 1; i < info->hdr->e_shnum; i++) {
e_shnum          2919 kernel/module.c 	    || (info->hdr->e_shnum * sizeof(Elf_Shdr) >
e_shnum          3017 kernel/module.c 	for (i = 1; i < info->hdr->e_shnum; i++) {
e_shnum          3066 kernel/module.c 	for (i = 1; i < info->hdr->e_shnum; i++) {
e_shnum          3291 kernel/module.c 	for (i = 0; i < info->hdr->e_shnum; i++) {
e_shnum           100 lib/bug.c      	for (i = 1; i < hdr->e_shnum; i++) {
e_shnum           542 samples/bpf/bpf_load.c 	for (i = 1; i < ehdr.e_shnum; i++) {
e_shnum           599 samples/bpf/bpf_load.c 	for (i = 1; i < ehdr.e_shnum; i++) {
e_shnum           628 samples/bpf/bpf_load.c 	for (i = 1; i < ehdr.e_shnum; i++) {
e_shnum            74 scripts/insert-sys-cert.c 	if (hdr->e_shnum == SHN_UNDEF)
e_shnum            77 scripts/insert-sys-cert.c 		num_sections = hdr->e_shnum;
e_shnum           190 scripts/insert-sys-cert.c 	if (hdr->e_shnum == SHN_UNDEF)
e_shnum           193 scripts/insert-sys-cert.c 		num_sections = hdr->e_shnum;
e_shnum           524 scripts/mod/modpost.c 	hdr->e_shnum     = TO_NATIVE(hdr->e_shnum);
e_shnum           537 scripts/mod/modpost.c 	if (hdr->e_shnum == SHN_UNDEF) {
e_shnum           545 scripts/mod/modpost.c 		info->num_sections = hdr->e_shnum;
e_shnum           191 scripts/recordmcount.h 	unsigned const old_shnum = w2(ehdr->e_shnum);
e_shnum           258 scripts/recordmcount.h 	ehdr->e_shnum = w2(2 + w2(ehdr->e_shnum));  /* {.rel,}__mcount_loc */
e_shnum           526 scripts/recordmcount.h 	unsigned const nhdr = w2(ehdr->e_shnum);
e_shnum           117 scripts/sortextable.h 	num_sections = r2(&ehdr->e_shnum);
e_shnum            74 sound/pci/mixart/mixart_hwdep.c 	__be16  e_shnum;
e_shnum          1385 tools/perf/util/symbol-elf.c 	ehdr->e_shnum     = 0;
e_shnum            91 tools/testing/selftests/proc/proc-pid-vm.c 	uint16_t e_shnum;
e_shnum           181 tools/testing/selftests/proc/proc-pid-vm.c 	h.e_shnum = 0;