Home
last modified time | relevance | path

Searched refs:e_shnum (Results 1 – 25 of 76) sorted by relevance

1234

/openbmc/linux/arch/mips/boot/tools/
H A Drelocs.c97 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 …]
/openbmc/linux/arch/mips/kernel/
H A Dvpe.c196 for (i = 0; i < hdr->e_shnum; i++) in layout_sections()
200 for (i = 0; i < hdr->e_shnum; ++i) { in layout_sections()
604 if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr)) { in vpe_elfload()
619 for (i = 1; i < hdr->e_shnum; i++) { in vpe_elfload()
650 for (i = 0; i < hdr->e_shnum; i++) { in vpe_elfload()
671 hdr->e_shnum, &mod); in vpe_elfload()
674 for (i = 1; i < hdr->e_shnum; i++) { in vpe_elfload()
679 if (info >= hdr->e_shnum) in vpe_elfload()
711 for (i = 0; i < hdr->e_shnum; i++) { in vpe_elfload()
/openbmc/linux/kernel/
H A Dkexec_file.c823 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_kbuf()
884 sechdrs_size = array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum); in kexec_purgatory_setup_sechdrs()
895 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_sechdrs()
951 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_apply_relocations()
968 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations()
969 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations()
982 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations()
1068 for (i = 0; i < ehdr->e_shnum; i++) { in kexec_purgatory_find_symbol()
1072 if (sechdrs[i].sh_link >= ehdr->e_shnum) in kexec_purgatory_find_symbol()
1087 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol()
H A Dkexec_elf.c68 } 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()
H A Dcfi.c59 for (i = 1; i < hdr->e_shnum; i++) { in module_cfi_finalize()
/openbmc/linux/arch/powerpc/boot/
H A Delf.h68 Elf32_Half e_shnum; member
85 Elf64_Half e_shnum; member
/openbmc/linux/scripts/
H A Dinsert-sys-cert.c74 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 Drecordmcount.h213 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()
/openbmc/linux/kernel/module/
H A Dsysfs.c80 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs()
97 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs()
184 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs()
199 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs()
H A Ddebug_kmemleak.c20 for (i = 1; i < info->hdr->e_shnum; i++) { in kmemleak_load_module()
H A Dmain.c186 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec()
221 for (i = 1; i < info->hdr->e_shnum; i++) { in find_any_sec()
1444 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations()
1448 if (infosec >= info->hdr->e_shnum) in apply_relocations()
1538 for (i = 0; i < info->hdr->e_shnum; ++i) { in __layout_sections()
1567 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections()
1713 || (info->hdr->e_shnum * sizeof(Elf_Shdr) > in elf_validity_cache_copy()
1725 || info->hdr->e_shstrndx >= info->hdr->e_shnum) { in elf_validity_cache_copy()
1728 info->hdr->e_shnum); in elf_validity_cache_copy()
1766 for (i = 1; i < info->hdr->e_shnum; i++) { in elf_validity_cache_copy()
[all …]
H A Dstrict_rwx.c71 for (i = 0; i < hdr->e_shnum; i++) { in module_enforce_rwx_sections()
H A Dlivepatch.c33 size = sizeof(*info->sechdrs) * info->hdr->e_shnum; in copy_module_elf()
H A Dkallsyms.c134 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in layout_symtab()
206 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in add_kallsyms()
233 for (i = 0; i < info->hdr->e_shnum; i++) { in init_build_id()
/openbmc/linux/arch/mips/vdso/
H A Dgenvdso.h16 sh_count = swap_uint16(ehdr->e_shnum); in FUNC()
70 sh_count = swap_uint16(ehdr->e_shnum); in FUNC()
/openbmc/openbmc/poky/scripts/
H A Drelocate_sdk.py54 e_ehsize, e_phentsize, e_phnum, e_shentsize, e_shnum, e_shstrndx
69 e_ehsize, e_phentsize, e_phnum, e_shentsize, e_shnum, e_shstrndx =\
134 for i in range(0,e_shnum):
/openbmc/qemu/include/hw/
H A Delf_ops.h.inc14 bswap16s(&ehdr->e_shnum); /* Section header table entry count */
118 sizeof(struct elf_shdr) * ehdr->e_shnum);
124 for (i = 0; i < ehdr->e_shnum; i++) {
129 symtab = glue(find_section, SZ)(shdr_table, ehdr->e_shnum, SHT_SYMTAB);
141 if (symtab->sh_link >= ehdr->e_shnum) {
213 sizeof(struct elf_shdr) * ehdr->e_shnum);
218 for (i = 0; i < ehdr->e_shnum; i++) {
223 reltab = glue(find_section, SZ)(shdr_table, ehdr->e_shnum, SHT_RELA);
/openbmc/u-boot/tools/
H A Dimg2srec.c264 getPtr = ExtractWord(&elfHeader.e_shnum, getPtr); in ConvertELF()
280 for (i = 0; i < elfHeader.e_shnum; i++) { in ConvertELF()
311 for (i = 0; i < elfHeader.e_shnum; i++) { in ConvertELF()
H A Dmips-relocs.c291 for (i = 0; i < ehdr_field(e_shnum); i++) { in main()
317 for (i = 0; i < ehdr_field(e_shnum); i++) { in main()
336 for (j = 0; j < ehdr_field(e_shnum); j++) { in main()
/openbmc/linux/arch/sparc/kernel/
H A Dmodule.c66 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()
/openbmc/linux/arch/riscv/kernel/
H A Dmodule-sections.c100 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()
/openbmc/linux/arch/loongarch/kernel/
H A Dmodule-sections.c113 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
138 for (i = 0; i < ehdr->e_shnum; i++) { in module_frob_arch_sections()
/openbmc/linux/arch/arm64/include/asm/
H A Dmodule.h61 for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) { in find_section()
/openbmc/linux/arch/mips/boot/
H A Delf2ecoff.c182 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()
/openbmc/linux/include/uapi/linux/
H A Delf.h222 Elf32_Half e_shnum; member
239 Elf64_Half e_shnum; member

1234