Home
last modified time | relevance | path

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

123

/linux/arch/mips/boot/tools/
A Drelocs.c97 if (shndx < ehdr.e_shnum) in sec_name()
112 for (i = 0; i < ehdr.e_shnum; i++) in sec_lookup()
235 ehdr.e_shnum = elf_half_to_cpu(ehdr.e_shnum); in read_ehdr()
256 if (ehdr.e_shstrndx >= ehdr.e_shnum) in read_ehdr()
272 for (i = 0; i < ehdr.e_shnum; i++) { in read_shdrs()
289 if (sec->shdr.sh_link < ehdr.e_shnum) in read_shdrs()
298 for (i = 0; i < ehdr.e_shnum; i++) { in read_strtabs()
323 for (i = 0; i < ehdr.e_shnum; i++) { in read_symtabs()
366 for (i = 0; i < ehdr.e_shnum; i++) { in read_relocs()
412 for (i = 0; i < ehdr.e_shnum; i++) { in remove_relocs()
[all …]
/linux/arch/mips/kernel/
A Dvpe.c196 for (i = 0; i < hdr->e_shnum; i++) in layout_sections()
200 for (i = 0; i < hdr->e_shnum; ++i) { in layout_sections()
605 if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr)) { in vpe_elfload()
620 for (i = 1; i < hdr->e_shnum; i++) { in vpe_elfload()
651 for (i = 0; i < hdr->e_shnum; i++) { in vpe_elfload()
672 hdr->e_shnum, &mod); in vpe_elfload()
675 for (i = 1; i < hdr->e_shnum; i++) { in vpe_elfload()
680 if (info >= hdr->e_shnum) in vpe_elfload()
712 for (i = 0; i < hdr->e_shnum; i++) { in vpe_elfload()
/linux/kernel/
A Dkexec_elf.c68 } else if (ehdr->e_shnum > 0 && in elf_is_ehdr_sane()
97 if (ehdr->e_shoff > 0 && ehdr->e_shnum > 0) { in elf_is_ehdr_sane()
104 shdr_size = sizeof(struct elf_shdr) * ehdr->e_shnum; in elf_is_ehdr_sane()
157 ehdr->e_shnum = elf16_to_cpu(ehdr, buf_ehdr->e_shnum); in elf_read_ehdr()
A Dkexec_file.c856 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_kbuf()
916 sechdrs = vzalloc(array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum)); in kexec_purgatory_setup_sechdrs()
920 pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in kexec_purgatory_setup_sechdrs()
927 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_sechdrs()
971 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_apply_relocations()
988 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations()
989 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations()
1002 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations()
1088 for (i = 0; i < ehdr->e_shnum; i++) { in kexec_purgatory_find_symbol()
1092 if (sechdrs[i].sh_link >= ehdr->e_shnum) in kexec_purgatory_find_symbol()
[all …]
A Dmodule.c352 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec()
387 for (i = 1; i < info->hdr->e_shnum; i++) { in find_any_sec()
1541 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs()
1558 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs()
1644 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs()
2041 for (i = 0; i < hdr->e_shnum; i++) { in module_enforce_rwx_sections()
2361 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations()
2365 if (infosec >= info->hdr->e_shnum) in apply_relocations()
2441 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections()
3019 info->hdr->e_shnum); in elf_validity_check()
[all …]
/linux/scripts/
A Dinsert-sys-cert.c74 if (hdr->e_shnum == SHN_UNDEF) in get_offset_from_address()
77 num_sections = hdr->e_shnum; in get_offset_from_address()
190 if (hdr->e_shnum == SHN_UNDEF) in get_symbol_table()
193 num_sections = hdr->e_shnum; in get_symbol_table()
A Drecordmcount.h213 if (shdr0 && !ehdr->e_shnum) in get_shnum()
216 return w2(ehdr->e_shnum); in get_shnum()
222 ehdr->e_shnum = 0; in set_shnum()
225 ehdr->e_shnum = w2(new_shnum); in set_shnum()
/linux/arch/powerpc/boot/
A Delf.h68 Elf32_Half e_shnum; member
85 Elf64_Half e_shnum; member
/linux/arch/mips/vdso/
A Dgenvdso.h16 sh_count = swap_uint16(ehdr->e_shnum); in FUNC()
70 sh_count = swap_uint16(ehdr->e_shnum); in FUNC()
/linux/arch/sparc/kernel/
A Dmodule.c66 if (symidx == hdr->e_shnum-1) { in module_frob_arch_sections()
190 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in do_patch_sections()
/linux/arch/riscv/kernel/
A Dmodule-sections.c100 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
123 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
/linux/arch/powerpc/kernel/
A Dmodule_32.c82 for (i = 1; i < hdr->e_shnum; i++) { in get_plt_size()
127 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
A Dmodule.c30 for (i = 1; i < hdr->e_shnum; i++) in find_section()
/linux/arch/mips/boot/
A Delf2ecoff.c182 e->e_shnum = swab16(e->e_shnum); in convert_elf_hdr()
336 ex.e_shnum * sizeof(Elf32_Shdr), in main()
339 convert_elf_shdrs(sh, ex.e_shnum); in main()
/linux/include/uapi/linux/
A Delf.h218 Elf32_Half e_shnum; member
235 Elf64_Half e_shnum; member
/linux/arch/parisc/kernel/
A Dmodule.c306 len = hdr->e_shnum * sizeof(me->arch.section[0]); in module_frob_arch_sections()
311 for (i = 1; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
888 for (i = 1; i < hdr->e_shnum; i++) { in module_finalize()
941 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
/linux/tools/testing/selftests/proc/
A Dproc-pid-vm.c91 uint16_t e_shnum; member
181 h.e_shnum = 0; in make_exe()
/linux/arch/arm64/kernel/
A Dmodule-plts.c303 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
324 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
/linux/arch/s390/kernel/
A Dmodule.c131 for (i = 0; i < hdr->e_shnum; i++) in module_frob_arch_sections()
164 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
532 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
/linux/arch/hexagon/kernel/
A Dmodule.c35 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
/linux/arch/sparc/vdso/
A Dvma.c77 for (i = 1; i < e->hdr->e_shnum; i++) { in one_section64()
145 for (i = 1; i < e->hdr->e_shnum; i++) { in one_section32()
A Dvdso2c.h65 for (i = 0; i < GET_BE(&hdr->e_shnum); i++) { in BITSFUNC()
/linux/arch/arm/kernel/
A Dmodule.c355 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) in find_mod_section()
371 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; in module_finalize()
/linux/lib/
A Dbug.c99 for (i = 1; i < hdr->e_shnum; i++) { in module_bug_finalize()
/linux/drivers/remoteproc/
A Dremoteproc_elf_helpers.h59 ELF_GEN_FIELD_GET_SET(hdr, e_shnum, u16) in ELF_GEN_FIELD_GET_SET()

Completed in 45 milliseconds

123