| /linux-6.15/arch/mips/boot/tools/ |
| H A D | relocs.c | 97 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-6.15/arch/mips/kernel/ |
| H A D | vpe.c | 196 for (i = 0; i < hdr->e_shnum; i++) in layout_sections() 200 for (i = 0; i < hdr->e_shnum; ++i) { in layout_sections() 604 if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr)) { in vpe_elfload() 619 for (i = 1; i < hdr->e_shnum; i++) { in vpe_elfload() 650 for (i = 0; i < hdr->e_shnum; i++) { in vpe_elfload() 671 hdr->e_shnum, &mod); in vpe_elfload() 674 for (i = 1; i < hdr->e_shnum; i++) { in vpe_elfload() 679 if (info >= hdr->e_shnum) in vpe_elfload() 711 for (i = 0; i < hdr->e_shnum; i++) { in vpe_elfload()
|
| /linux-6.15/kernel/ |
| H A D | kexec_elf.c | 68 } 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()
|
| H A D | kexec_file.c | 859 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_kbuf() 920 sechdrs_size = array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum); in kexec_purgatory_setup_sechdrs() 931 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_sechdrs() 987 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_apply_relocations() 1004 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations() 1005 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 1018 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 1104 for (i = 0; i < ehdr->e_shnum; i++) { in kexec_purgatory_find_symbol() 1108 if (sechdrs[i].sh_link >= ehdr->e_shnum) in kexec_purgatory_find_symbol() 1123 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol()
|
| H A D | cfi.c | 61 for (i = 1; i < hdr->e_shnum; i++) { in module_cfi_finalize()
|
| /linux-6.15/arch/powerpc/boot/ |
| H A D | elf.h | 68 Elf32_Half e_shnum; member 85 Elf64_Half e_shnum; member
|
| /linux-6.15/scripts/ |
| H A D | insert-sys-cert.c | 74 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()
|
| H A D | recordmcount.h | 213 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-6.15/kernel/module/ |
| H A D | sysfs.c | 74 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs() 92 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs() 161 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs() 184 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs()
|
| H A D | main.c | 188 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec() 214 for (i = 1; i < info->hdr->e_shnum; i++) { in find_any_unique_sec() 255 for (i = 1; i < info->hdr->e_shnum; i++) { in find_any_sec() 1501 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations() 1505 if (infosec >= info->hdr->e_shnum) in apply_relocations() 1638 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections() 1816 for (i = 1; i < info->hdr->e_shnum; i++) { in elf_validity_cache_sechdrs() 1866 info->hdr->e_shnum); in elf_validity_cache_secstrings() 1887 for (i = 0; i < info->hdr->e_shnum; i++) { in elf_validity_cache_secstrings() 2013 for (i = 1; i < info->hdr->e_shnum; i++) { in elf_validity_cache_index_sym() [all …]
|
| H A D | livepatch.c | 33 size = sizeof(*info->sechdrs) * info->hdr->e_shnum; in copy_module_elf()
|
| H A D | kallsyms.c | 134 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in layout_symtab() 202 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in add_kallsyms() 230 for (i = 0; i < info->hdr->e_shnum; i++) { in init_build_id()
|
| H A D | strict_rwx.c | 99 for (i = 0; i < hdr->e_shnum; i++) { in module_enforce_rwx_sections()
|
| /linux-6.15/arch/mips/vdso/ |
| H A D | genvdso.h | 16 sh_count = swap_uint16(ehdr->e_shnum); in FUNC() 70 sh_count = swap_uint16(ehdr->e_shnum); in FUNC()
|
| /linux-6.15/arch/sparc/kernel/ |
| H A D | module.c | 36 if (symidx == hdr->e_shnum-1) { in module_frob_arch_sections() 160 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in do_patch_sections()
|
| /linux-6.15/arch/s390/include/asm/ |
| H A D | module.h | 48 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) { in find_section()
|
| /linux-6.15/arch/riscv/kernel/ |
| H A D | module-sections.c | 101 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections() 124 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
|
| /linux-6.15/arch/loongarch/kernel/ |
| H A D | module-sections.c | 113 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections() 138 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
|
| /linux-6.15/arch/arm64/include/asm/ |
| H A D | module.h | 60 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) { in find_section()
|
| /linux-6.15/arch/s390/tools/ |
| H A D | relocs.c | 143 ehdr.e_shnum = elf_half_to_cpu(ehdr.e_shnum); in read_ehdr() 146 shnum = ehdr.e_shnum; in read_ehdr()
|
| /linux-6.15/arch/mips/boot/ |
| H A D | elf2ecoff.c | 182 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-6.15/arch/powerpc/kernel/ |
| H A D | module_64.c | 217 for (i = 1; i < hdr->e_shnum; i++) { in get_stubs_size() 251 for (i = 1; i < hdr->e_shnum; i++) { in get_stubs_size() 306 for (i = 1; i < hdr->e_shnum; i++) { in get_got_size() 315 for (i = 1; i < hdr->e_shnum; i++) { in get_got_size() 439 for (i = 1; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
| H A D | module.c | 27 for (i = 1; i < hdr->e_shnum; i++) in find_section()
|
| /linux-6.15/arch/riscv/include/asm/ |
| H A D | module.h | 122 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) { in find_section()
|
| /linux-6.15/tools/include/uapi/linux/ |
| H A D | elf.h | 230 Elf32_Half e_shnum; member 247 Elf64_Half e_shnum; member
|