| /Linux-v5.4/arch/mips/boot/tools/ |
| 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() 265 secs = calloc(ehdr.e_shnum, sizeof(struct section)); in read_shdrs() 267 die("Unable to allocate %d section headers\n", ehdr.e_shnum); in read_shdrs() 272 for (i = 0; i < ehdr.e_shnum; i++) { in read_shdrs() 278 i, ehdr.e_shnum, strerror(errno)); 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() [all …]
|
| /Linux-v5.4/arch/mips/kernel/ |
| 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() 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-v5.4/kernel/ |
| 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()
|
| D | kexec_file.c | 844 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_kbuf() 904 sechdrs = vzalloc(array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum)); in kexec_purgatory_setup_sechdrs() 908 pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in kexec_purgatory_setup_sechdrs() 915 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_sechdrs() 959 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_apply_relocations() 976 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations() 977 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 990 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 1076 for (i = 0; i < ehdr->e_shnum; i++) { in kexec_purgatory_find_symbol() 1080 if (sechdrs[i].sh_link >= ehdr->e_shnum) in kexec_purgatory_find_symbol() [all …]
|
| D | module.c | 347 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec() 1542 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs() 1559 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() 1659 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs() 2110 size = sizeof(*info->sechdrs) * info->hdr->e_shnum; in copy_module_elf() 2362 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations() 2366 if (infosec >= info->hdr->e_shnum) in apply_relocations() 2427 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections() 2432 for (i = 0; i < info->hdr->e_shnum; ++i) { in layout_sections() [all …]
|
| /Linux-v5.4/arch/powerpc/boot/ |
| D | elf.h | 68 Elf32_Half e_shnum; member 85 Elf64_Half e_shnum; member
|
| /Linux-v5.4/scripts/ |
| 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()
|
| D | recordmcount.h | 191 unsigned const old_shnum = w2(ehdr->e_shnum); in append_func() 258 ehdr->e_shnum = w2(2 + w2(ehdr->e_shnum)); /* {.rel,}__mcount_loc */ in append_func() 526 unsigned const nhdr = w2(ehdr->e_shnum); in do_func()
|
| /Linux-v5.4/arch/mips/vdso/ |
| D | genvdso.h | 16 sh_count = swap_uint16(ehdr->e_shnum); in FUNC() 70 sh_count = swap_uint16(ehdr->e_shnum); in FUNC()
|
| /Linux-v5.4/arch/sparc/kernel/ |
| D | module.c | 66 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-v5.4/arch/riscv/kernel/ |
| D | module-sections.c | 100 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-v5.4/arch/x86/kernel/ |
| D | livepatch.c | 29 for (s = info->sechdrs; s < info->sechdrs + info->hdr.e_shnum; s++) { in arch_klp_init_object_loaded()
|
| /Linux-v5.4/arch/powerpc/kernel/ |
| D | module_32.c | 97 for (i = 1; i < hdr->e_shnum; i++) { in get_plt_size() 142 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
| D | module.c | 28 for (i = 1; i < hdr->e_shnum; i++) in find_section()
|
| /Linux-v5.4/include/uapi/linux/ |
| D | elf.h | 217 Elf32_Half e_shnum; member 234 Elf64_Half e_shnum; member
|
| /Linux-v5.4/arch/mips/boot/ |
| 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-v5.4/arch/s390/kernel/ |
| D | module.c | 120 for (i = 0; i < hdr->e_shnum; i++) in module_frob_arch_sections() 153 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections() 466 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
|
| /Linux-v5.4/arch/arm64/kernel/ |
| D | module-plts.c | 268 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections() 290 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
|
| /Linux-v5.4/arch/hexagon/kernel/ |
| D | module.c | 35 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
| /Linux-v5.4/samples/bpf/ |
| D | bpf_load.c | 542 for (i = 1; i < ehdr.e_shnum; i++) { in do_load_bpf_file() 599 for (i = 1; i < ehdr.e_shnum; i++) { in do_load_bpf_file() 628 for (i = 1; i < ehdr.e_shnum; i++) { in do_load_bpf_file()
|
| /Linux-v5.4/tools/testing/selftests/proc/ |
| D | proc-pid-vm.c | 91 uint16_t e_shnum; member 181 h.e_shnum = 0; in make_exe()
|
| /Linux-v5.4/arch/arm/kernel/ |
| D | module.c | 333 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) in find_mod_section() 349 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; in module_finalize()
|
| /Linux-v5.4/arch/parisc/kernel/ |
| D | module.c | 306 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-v5.4/arch/sparc/vdso/ |
| D | vma.c | 77 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()
|
| /Linux-v5.4/lib/ |
| D | bug.c | 100 for (i = 1; i < hdr->e_shnum; i++) { in module_bug_finalize()
|