/linux-4.4.14/arch/x86/tools/ |
D | relocs.c | 243 if (shndx < ehdr.e_shnum) { in sec_name() 271 for (i = 0; i < ehdr.e_shnum; i++) { in sym_lookup() 363 ehdr.e_shnum = elf_half_to_cpu(ehdr.e_shnum); in read_ehdr() 384 if (ehdr.e_shstrndx >= ehdr.e_shnum) { in read_ehdr() 394 secs = calloc(ehdr.e_shnum, sizeof(struct section)); in read_shdrs() 397 ehdr.e_shnum); in read_shdrs() 403 for (i = 0; i < ehdr.e_shnum; i++) { in read_shdrs() 407 i, ehdr.e_shnum, strerror(errno)); in read_shdrs() 418 if (sec->shdr.sh_link < ehdr.e_shnum) in read_shdrs() 427 for (i = 0; i < ehdr.e_shnum; i++) { in read_strtabs() [all …]
|
/linux-4.4.14/kernel/ |
D | kexec_file.c | 687 sechdrs = vzalloc(pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in __kexec_load_purgatory() 691 memcpy(sechdrs, sechdrs_c, pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in __kexec_load_purgatory() 707 for (i = 0; i < pi->ehdr->e_shnum; i++) { in __kexec_load_purgatory() 720 for (i = 0; i < pi->ehdr->e_shnum; i++) { in __kexec_load_purgatory() 743 for (i = 0; i < pi->ehdr->e_shnum; i++) { in __kexec_load_purgatory() 791 for (i = 0; i < pi->ehdr->e_shnum; i++) { in __kexec_load_purgatory() 850 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_apply_relocations() 863 if (sechdrs[i].sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations() 864 sechdrs[i].sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 877 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() [all …]
|
D | module.c | 374 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec() 1497 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs() 1515 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs() 1600 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs() 1616 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs() 2180 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations() 2184 if (infosec >= info->hdr->e_shnum) in apply_relocations() 2240 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections() 2245 for (i = 0; i < info->hdr->e_shnum; ++i) { in layout_sections() 2274 for (i = 0; i < info->hdr->e_shnum; ++i) { in layout_sections() [all …]
|
/linux-4.4.14/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()
|
D | module.c | 281 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | module.c | 31 Elf_Shdr *s, *sechdrs_end = sechdrs + hdr->e_shnum; in module_frob_arch_sections() 243 for (i = 1; i < hdr->e_shnum; i++) { in module_finalize() 251 for (i = 1; i < hdr->e_shnum; i++) { in module_finalize() 257 if (info >= hdr->e_shnum) in module_finalize()
|
/linux-4.4.14/arch/powerpc/boot/ |
D | elf.h | 67 Elf32_Half e_shnum; member 84 Elf64_Half e_shnum; member
|
/linux-4.4.14/samples/bpf/ |
D | bpf_load.c | 251 for (i = 1; i < ehdr.e_shnum; i++) { in load_bpf_file() 282 for (i = 1; i < ehdr.e_shnum; i++) { in load_bpf_file() 309 for (i = 1; i < ehdr.e_shnum; i++) { in load_bpf_file()
|
/linux-4.4.14/arch/mips/vdso/ |
D | genvdso.h | 22 sh_count = swap_uint16(ehdr->e_shnum); in FUNC() 125 sh_count = swap_uint16(ehdr->e_shnum); in FUNC()
|
/linux-4.4.14/arch/sparc/kernel/ |
D | module.c | 65 if (symidx == hdr->e_shnum-1) { in module_frob_arch_sections() 189 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in do_patch_sections()
|
/linux-4.4.14/arch/metag/kernel/ |
D | module.c | 95 for (i = 1; i < hdr->e_shnum; i++) { in get_plt_size() 140 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | module.c | 40 for (i = 1; i < hdr->e_shnum; i++) in find_section()
|
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_64.c | 278 for (i = 1; i < hdr->e_shnum; i++) { in get_stubs_size() 369 for (i = 1; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
D | vdso.c | 267 for (i = 1; i < ehdr->e_shnum; i++) { in find_section32() 372 for (i = 1; i < ehdr->e_shnum; i++) { in find_section64()
|
D | fadump.c | 786 elf->e_shnum = 0; in fadump_init_elfcore_header()
|
/linux-4.4.14/scripts/ |
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()
|
D | sortextable.h | 119 num_sections = r2(&ehdr->e_shnum); in do_func()
|
/linux-4.4.14/include/uapi/linux/ |
D | elf.h | 216 Elf32_Half e_shnum; member 233 Elf64_Half e_shnum; member
|
/linux-4.4.14/arch/avr32/kernel/ |
D | module.c | 72 for (i = 0; i < hdr->e_shnum; i++) in module_frob_arch_sections() 104 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
/linux-4.4.14/arch/mips/boot/ |
D | elf2ecoff.c | 180 e->e_shnum = swab16(e->e_shnum); in convert_elf_hdr() 334 ex.e_shnum * sizeof(Elf32_Shdr), in main() 337 convert_elf_shdrs(sh, ex.e_shnum); in main()
|
/linux-4.4.14/arch/arc/kernel/ |
D | module.c | 42 for (i = 1; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
/linux-4.4.14/lib/ |
D | bug.c | 98 for (i = 1; i < hdr->e_shnum; i++) { in module_bug_finalize()
|
/linux-4.4.14/arch/hexagon/kernel/ |
D | module.c | 48 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
/linux-4.4.14/arch/arm/kernel/ |
D | module.c | 313 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) in find_mod_section() 329 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; in module_finalize()
|
D | module-plts.c | 136 Elf32_Shdr *s, *sechdrs_end = sechdrs + ehdr->e_shnum; in module_frob_arch_sections()
|
D | vdso.c | 111 for (i = 1; i < ehdr->e_shnum; i++) { in find_section()
|
/linux-4.4.14/arch/x86/kernel/ |
D | machine_kexec_64.c | 435 if (symtabsec->sh_link >= ehdr->e_shnum) { in arch_kexec_apply_relocations_add() 494 else if (sym->st_shndx >= ehdr->e_shnum) { in arch_kexec_apply_relocations_add()
|
D | module.c | 218 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
|
/linux-4.4.14/arch/s390/kernel/ |
D | module.c | 118 for (i = 0; i < hdr->e_shnum; i++) in module_frob_arch_sections() 151 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
/linux-4.4.14/arch/parisc/kernel/ |
D | module.c | 326 len = hdr->e_shnum * sizeof(me->arch.section[0]); in module_frob_arch_sections() 331 for (i = 1; i < hdr->e_shnum; i++) { in module_frob_arch_sections() 885 for (i = 1; i < hdr->e_shnum; i++) { in module_finalize()
|
/linux-4.4.14/arch/powerpc/oprofile/cell/ |
D | vma_map.c | 174 for (i = 0; i < ehdr.e_shnum; i++) { in create_vma_map()
|
/linux-4.4.14/arch/x86/entry/vdso/ |
D | vdso2c.h | 65 for (i = 0; i < GET_LE(&hdr->e_shnum); i++) { in BITSFUNC()
|
/linux-4.4.14/drivers/remoteproc/ |
D | remoteproc_elf_loader.c | 224 for (i = 0; i < ehdr->e_shnum; i++, shdr++) {
|
/linux-4.4.14/arch/alpha/kernel/ |
D | module.c | 84 esechdrs = sechdrs + hdr->e_shnum; in module_frob_arch_sections()
|
/linux-4.4.14/arch/arm64/kernel/ |
D | module.c | 419 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) { in module_finalize()
|
/linux-4.4.14/arch/sh/kernel/ |
D | dwarf.c | 1102 for (i = 1; i < hdr->e_shnum; i++) { in module_dwarf_finalize() 1113 if (i != hdr->e_shnum) { in module_dwarf_finalize()
|
/linux-4.4.14/scripts/mod/ |
D | modpost.c | 450 hdr->e_shnum = TO_NATIVE(hdr->e_shnum); in parse_elf() 463 if (hdr->e_shnum == SHN_UNDEF) { in parse_elf() 471 info->num_sections = hdr->e_shnum; in parse_elf()
|
/linux-4.4.14/sound/pci/mixart/ |
D | mixart_hwdep.c | 87 u16 e_shnum; member
|
/linux-4.4.14/fs/ |
D | binfmt_elf_fdpic.c | 1334 elf->e_shnum = 0; in fill_elf_fdpic_header() 1503 elf->e_shnum = 1; in fill_extnum_info() 1509 shdr4extnum->sh_size = elf->e_shnum; in fill_extnum_info()
|
D | binfmt_elf.c | 2106 elf->e_shnum = 1; in fill_extnum_info() 2112 shdr4extnum->sh_size = elf->e_shnum; in fill_extnum_info()
|
/linux-4.4.14/fs/proc/ |
D | kcore.c | 350 elf->e_shnum = 0; in elf_kcore_store_hdr()
|
/linux-4.4.14/arch/ia64/kernel/ |
D | module.c | 425 Elf64_Shdr *s, *sechdrs_end = sechdrs + ehdr->e_shnum; in module_frob_arch_sections()
|
/linux-4.4.14/tools/perf/util/ |
D | symbol-elf.c | 1322 ehdr->e_shnum = 0; in kcore__copy_hdr()
|