| /Linux-v4.19/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-v4.19/arch/x86/tools/ |
| D | relocs.c | 245 if (shndx < ehdr.e_shnum) { in sec_name() 273 for (i = 0; i < ehdr.e_shnum; i++) { in sym_lookup() 365 ehdr.e_shnum = elf_half_to_cpu(ehdr.e_shnum); in read_ehdr() 386 if (ehdr.e_shstrndx >= ehdr.e_shnum) { in read_ehdr() 396 secs = calloc(ehdr.e_shnum, sizeof(struct section)); in read_shdrs() 399 ehdr.e_shnum); in read_shdrs() 405 for (i = 0; i < ehdr.e_shnum; i++) { in read_shdrs() 409 i, ehdr.e_shnum, strerror(errno)); in read_shdrs() 420 if (sec->shdr.sh_link < ehdr.e_shnum) in read_shdrs() 429 for (i = 0; i < ehdr.e_shnum; i++) { in read_strtabs() [all …]
|
| /Linux-v4.19/arch/powerpc/kernel/ |
| D | kexec_elf_64.c | 98 } else if (ehdr->e_shnum > 0 && in elf_is_ehdr_sane() 127 if (ehdr->e_shoff > 0 && ehdr->e_shnum > 0) { in elf_is_ehdr_sane() 134 shdr_size = sizeof(struct elf_shdr) * ehdr->e_shnum; in elf_is_ehdr_sane() 190 ehdr->e_shnum = elf16_to_cpu(ehdr, buf_ehdr->e_shnum); in elf_read_ehdr() 388 shdr_size = sizeof(struct elf_shdr) * elf_info->ehdr->e_shnum; in elf_read_shdrs() 394 for (i = 0; i < elf_info->ehdr->e_shnum; i++) { in elf_read_shdrs() 438 if (ehdr->e_shoff > 0 && ehdr->e_shnum > 0) { in elf_read_from_buffer()
|
| D | module_32.c | 109 for (i = 1; i < hdr->e_shnum; i++) { in get_plt_size() 154 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
| D | module.c | 40 for (i = 1; i < hdr->e_shnum; i++) in find_section()
|
| /Linux-v4.19/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-v4.19/kernel/ |
| D | kexec_file.c | 736 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_kbuf() 796 sechdrs = vzalloc(array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum)); in kexec_purgatory_setup_sechdrs() 800 pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in kexec_purgatory_setup_sechdrs() 807 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_sechdrs() 851 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_apply_relocations() 868 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations() 869 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 882 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 968 for (i = 0; i < ehdr->e_shnum; i++) { in kexec_purgatory_find_symbol() 972 if (sechdrs[i].sh_link >= ehdr->e_shnum) in kexec_purgatory_find_symbol() [all …]
|
| D | module.c | 349 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec() 1492 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs() 1510 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs() 1595 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs() 1610 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs() 2059 size = sizeof(*info->sechdrs) * info->hdr->e_shnum; in copy_module_elf() 2308 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations() 2312 if (infosec >= info->hdr->e_shnum) in apply_relocations() 2373 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections() 2378 for (i = 0; i < info->hdr->e_shnum; ++i) { in layout_sections() [all …]
|
| /Linux-v4.19/arch/powerpc/boot/ |
| D | elf.h | 68 Elf32_Half e_shnum; member 85 Elf64_Half e_shnum; member
|
| /Linux-v4.19/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 | 192 unsigned const old_shnum = w2(ehdr->e_shnum); in append_func() 249 ehdr->e_shnum = w2(2 + w2(ehdr->e_shnum)); /* {.rel,}__mcount_loc */ in append_func() 507 unsigned const nhdr = w2(ehdr->e_shnum); in do_func()
|
| /Linux-v4.19/arch/mips/vdso/ |
| D | genvdso.h | 20 sh_count = swap_uint16(ehdr->e_shnum); in FUNC() 74 sh_count = swap_uint16(ehdr->e_shnum); in FUNC()
|
| /Linux-v4.19/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-v4.19/arch/riscv/kernel/ |
| D | module-sections.c | 97 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections() 120 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
|
| /Linux-v4.19/arch/x86/kernel/ |
| D | livepatch.c | 41 for (s = info->sechdrs; s < info->sechdrs + info->hdr.e_shnum; s++) { in arch_klp_init_object_loaded()
|
| /Linux-v4.19/arch/arm64/kernel/ |
| D | module-plts.c | 212 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections() 234 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
|
| /Linux-v4.19/include/uapi/linux/ |
| D | elf.h | 217 Elf32_Half e_shnum; member 234 Elf64_Half e_shnum; member
|
| /Linux-v4.19/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-v4.19/arch/s390/kernel/ |
| D | module.c | 113 for (i = 0; i < hdr->e_shnum; i++) in module_frob_arch_sections() 146 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections() 459 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
|
| /Linux-v4.19/arch/hexagon/kernel/ |
| D | module.c | 48 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
| /Linux-v4.19/samples/bpf/ |
| D | bpf_load.c | 526 for (i = 1; i < ehdr.e_shnum; i++) { in do_load_bpf_file() 583 for (i = 1; i < ehdr.e_shnum; i++) { in do_load_bpf_file() 612 for (i = 1; i < ehdr.e_shnum; i++) { in do_load_bpf_file()
|
| /Linux-v4.19/arch/arm/kernel/ |
| D | module.c | 329 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) in find_mod_section() 345 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; in module_finalize()
|
| /Linux-v4.19/lib/ |
| D | bug.c | 100 for (i = 1; i < hdr->e_shnum; i++) { in module_bug_finalize()
|
| /Linux-v4.19/arch/sparc/vdso/ |
| D | vdso2c.h | 66 for (i = 0; i < GET_BE(&hdr->e_shnum); i++) { in BITSFUNC()
|
| /Linux-v4.19/arch/parisc/kernel/ |
| D | module.c | 327 len = hdr->e_shnum * sizeof(me->arch.section[0]); in module_frob_arch_sections() 332 for (i = 1; i < hdr->e_shnum; i++) { in module_frob_arch_sections() 902 for (i = 1; i < hdr->e_shnum; i++) { in module_finalize()
|