| /linux/arch/mips/boot/tools/ |
| H A D | relocs.c | 98 if (shndx < ehdr.e_shnum) in sec_name() 113 for (i = 0; i < ehdr.e_shnum; i++) in sec_lookup() 236 ehdr.e_shnum = elf_half_to_cpu(ehdr.e_shnum); in read_ehdr() 257 if (ehdr.e_shstrndx >= ehdr.e_shnum) in read_ehdr() 266 secs = calloc(ehdr.e_shnum, sizeof(struct section)); in read_shdrs() 268 die("Unable to allocate %d section headers\n", ehdr.e_shnum); in read_shdrs() 273 for (i = 0; i < ehdr.e_shnum; i++) { in read_shdrs() 279 i, ehdr.e_shnum, strerror(errno)); in read_shdrs() 290 if (sec->shdr.sh_link < ehdr.e_shnum) in read_shdrs() 299 for (i = 0; i < ehdr.e_shnum; i++) { in read_strtabs() [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | vpe.c | 197 for (i = 0; i < hdr->e_shnum; i++) in layout_sections() 201 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/ |
| H A D | kexec_file.c | 907 for (i = 0; i < ehdr->e_shnum; i++) { in kexec_purgatory_setup_kbuf() 911 if (sechdrs[i].sh_link >= ehdr->e_shnum) in kexec_purgatory_setup_kbuf() 926 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_setup_kbuf() 962 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_sechdrs() 1027 sechdrs_size = array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum); 1044 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_apply_relocations() 1108 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_load_purgatory() 1125 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_load_purgatory() 1126 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_load_purgatory() 1139 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_purgatory_find_symbol() [all...] |
| H A D | cfi.c | 76 for (i = 1; i < hdr->e_shnum; i++) { in module_cfi_finalize()
|
| /linux/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/arch/powerpc/boot/ |
| H A D | elf.h | 68 Elf32_Half e_shnum; member 85 Elf64_Half e_shnum; member
|
| /linux/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() 183 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs()
|
| H A D | main.c | 240 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec() 266 for (i = 1; i < info->hdr->e_shnum; i++) { in find_any_unique_sec() 307 for (i = 1; i < info->hdr->e_shnum; i++) { in find_any_sec() 1571 if (sym[i].st_shndx >= info->hdr->e_shnum) { in simplify_symbols() 1573 mod->name, name, sym[i].st_shndx, info->hdr->e_shnum - 1); in simplify_symbols() 1597 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations() 1601 if (infosec >= info->hdr->e_shnum) in apply_relocations() 1696 for (i = 0; i < info->hdr->e_shnum; ++i) { in __layout_sections() 1739 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections() 1911 || (info->hdr->e_shnum * sizeof(Elf_Shdr) > in elf_validity_cache_sechdrs() [all …]
|
| 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 | livepatch.c | 33 size = sizeof(*info->sechdrs) * info->hdr->e_shnum; in copy_module_elf()
|
| /linux/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/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ |
| H A D | gh100.c | 202 Elf32_Off section_begin = ehdr->e_shoff + ehdr->e_shnum * ehdr->e_shentsize; in elf_validate_sections() 208 for (unsigned int i = 1; i < ehdr->e_shnum; i++) { in elf_validate_sections() 252 for (unsigned int i = 1; i < ehdr->e_shnum; i++) { in elf_section()
|
| /linux/arch/loongarch/kernel/ |
| H A D | module-sections.c | 114 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections() 139 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
|
| /linux/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/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/arch/riscv/kernel/ |
| H A D | module-sections.c | 129 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections() 152 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
|
| /linux/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/arch/arm64/include/asm/ |
| H A D | module.h | 61 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) { in find_section()
|
| /linux/arch/powerpc/kernel/ |
| H A D | module_64.c | 216 for (i = 1; i < hdr->e_shnum; i++) { in get_stubs_size() 250 for (i = 1; i < hdr->e_shnum; i++) { in get_stubs_size() 305 for (i = 1; i < hdr->e_shnum; i++) { in get_got_size() 314 for (i = 1; i < hdr->e_shnum; i++) { in get_got_size() 438 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/arch/parisc/kernel/ |
| H A D | module.c | 276 len = hdr->e_shnum * sizeof(me->arch.section[0]); in module_frob_arch_sections() 281 for (i = 1; i < hdr->e_shnum; i++) { in module_frob_arch_sections() 859 for (i = 1; i < hdr->e_shnum; i++) { in module_finalize() 912 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
|
| /linux/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/tools/testing/selftests/sgx/ |
| H A D | load.c | 149 for (i = 0; i < ehdr->e_shnum; i++) { in encl_get_entry() 157 for (i = 0; i < ehdr->e_shnum; i++) { in encl_get_entry()
|
| /linux/arch/arm64/kernel/pi/ |
| H A D | relacheck.c | 77 for (int i = 0; i < swab_elfhword(ehdr->e_shnum); i++) { in main()
|