/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 …]
|
/arch/x86/tools/ |
D | relocs.c | 244 if (shndx < ehdr.e_shnum) { in sec_name() 272 for (i = 0; i < ehdr.e_shnum; i++) { in sym_lookup() 364 ehdr.e_shnum = elf_half_to_cpu(ehdr.e_shnum); in read_ehdr() 385 if (ehdr.e_shstrndx >= ehdr.e_shnum) { in read_ehdr() 395 secs = calloc(ehdr.e_shnum, sizeof(struct section)); in read_shdrs() 398 ehdr.e_shnum); in read_shdrs() 404 for (i = 0; i < ehdr.e_shnum; i++) { in read_shdrs() 408 i, ehdr.e_shnum, strerror(errno)); in read_shdrs() 419 if (sec->shdr.sh_link < ehdr.e_shnum) in read_shdrs() 428 for (i = 0; i < ehdr.e_shnum; i++) { in read_strtabs() [all …]
|
/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.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 | 249 for (i = 1; i < hdr->e_shnum; i++) { in get_stubs_size() 338 for (i = 1; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
/arch/blackfin/kernel/ |
D | module.c | 34 Elf_Shdr *s, *sechdrs_end = sechdrs + hdr->e_shnum; in module_frob_arch_sections() 246 for (i = 1; i < hdr->e_shnum; i++) { in module_finalize() 254 for (i = 1; i < hdr->e_shnum; i++) { in module_finalize() 260 if (info >= hdr->e_shnum) in module_finalize()
|
/arch/powerpc/boot/ |
D | elf.h | 68 Elf32_Half e_shnum; member 85 Elf64_Half e_shnum; member
|
/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()
|
/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()
|
D | machine_kexec_64.c | 461 if (symtabsec->sh_link >= ehdr->e_shnum) { in arch_kexec_apply_relocations_add() 520 else if (sym->st_shndx >= ehdr->e_shnum) { in arch_kexec_apply_relocations_add()
|
D | module.c | 234 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
|
/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()
|
/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()
|
/arch/arm64/kernel/ |
D | module-plts.c | 130 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()
|
/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()
|
/arch/hexagon/kernel/ |
D | module.c | 48 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
/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()
|
/arch/s390/kernel/ |
D | module.c | 126 for (i = 0; i < hdr->e_shnum; i++) in module_frob_arch_sections() 159 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections() 472 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
|
/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()
|
D | module-plts.c | 196 Elf32_Shdr *s, *sechdrs_end = sechdrs + ehdr->e_shnum; in module_frob_arch_sections()
|
D | vdso.c | 134 for (i = 1; i < ehdr->e_shnum; i++) { in find_section()
|
/arch/powerpc/oprofile/cell/ |
D | vma_map.c | 174 for (i = 0; i < ehdr.e_shnum; i++) { in create_vma_map()
|
/arch/x86/entry/vdso/ |
D | vdso2c.h | 72 for (i = 0; i < GET_LE(&hdr->e_shnum); i++) { in BITSFUNC()
|
/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() 901 for (i = 1; i < hdr->e_shnum; i++) { in module_finalize()
|