| /OK3568_Linux_fs/kernel/arch/mips/boot/tools/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/mips/kernel/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | kexec_file.c | 826 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_kbuf() 886 sechdrs = vzalloc(array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum)); in kexec_purgatory_setup_sechdrs() 890 pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in kexec_purgatory_setup_sechdrs() 897 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_purgatory_setup_sechdrs() 941 for (i = 0; i < pi->ehdr->e_shnum; i++) { in kexec_apply_relocations() 958 if (relsec->sh_info >= pi->ehdr->e_shnum || in kexec_apply_relocations() 959 relsec->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 972 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations() 1058 for (i = 0; i < ehdr->e_shnum; i++) { in kexec_purgatory_find_symbol() 1062 if (sechdrs[i].sh_link >= ehdr->e_shnum) in kexec_purgatory_find_symbol() [all …]
|
| H A D | kexec_elf.c | 68 } 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 D | module.c | 360 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec() 1608 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs() 1625 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs() 1709 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs() 1724 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs() 2106 for (i = 0; i < hdr->e_shnum; i++) { in module_enforce_rwx_sections() 2148 size = sizeof(*info->sechdrs) * info->hdr->e_shnum; in copy_module_elf() 2439 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations() 2443 if (infosec >= info->hdr->e_shnum) in apply_relocations() 2506 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections() [all …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/boot/ |
| H A D | elf.h | 68 Elf32_Half e_shnum; member 85 Elf64_Half e_shnum; member
|
| /OK3568_Linux_fs/buildroot/package/patchelf/ |
| H A D | 0008-Use-sh_offset-instead-of-sh_addr-when-checking-alrea.patch | 31 - while( shdrs[i].sh_addr <= pht_size && i < rdi(hdr->e_shnum) ) { 32 + while( shdrs[i].sh_offset <= pht_size && i < rdi(hdr->e_shnum) ) {
|
| H A D | 0010-Fix-endianness-issues-for-powerpc-PIE.patch | 61 - while( shdrs[i].sh_offset <= pht_size && i < rdi(hdr->e_shnum) ) { 62 + while( rdi(shdrs[i].sh_offset) <= pht_size && i < rdi(hdr->e_shnum) ) {
|
| /OK3568_Linux_fs/kernel/drivers/soc/rockchip/minidump/ |
| H A D | rk_minidump.c | 151 struct elf_shdr *shdr = elf_section(hdr, hdr->e_shnum++); in md_update_ss_toc() 345 for (i = 0; i < hdr->e_shnum; i++) { in rk_minidump_clear_headers() 354 if (i == hdr->e_shnum) { in rk_minidump_clear_headers() 384 for (i = shidx; i < hdr->e_shnum - 1; i++) { in rk_minidump_clear_headers() 392 hdr->e_shnum--; in rk_minidump_clear_headers() 569 ehdr->e_shnum = 4; in rk_minidump_add_header()
|
| /OK3568_Linux_fs/u-boot/tools/rockchip/ |
| H A D | trust_merger.h | 145 uint16_t e_shnum; member 162 uint16_t e_shnum; member
|
| /OK3568_Linux_fs/yocto/poky/scripts/ |
| H A D | relocate_sdk.py | 54 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):
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/u-boot/tools/ |
| H A D | img2srec.c | 264 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 D | mips-relocs.c | 296 for (i = 0; i < ehdr_field(e_shnum); i++) { in main() 322 for (i = 0; i < ehdr_field(e_shnum); i++) { in main() 341 for (j = 0; j < ehdr_field(e_shnum); j++) { in main()
|
| /OK3568_Linux_fs/kernel/arch/sparc/kernel/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/arch/riscv/kernel/ |
| H A D | module-sections.c | 100 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()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | module_32.c | 82 for (i = 1; i < hdr->e_shnum; i++) { in get_plt_size() 127 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections()
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | elf.h | 218 Elf32_Half e_shnum; member 235 Elf64_Half e_shnum; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | elf.h | 217 Elf32_Half e_shnum; member 234 Elf64_Half e_shnum; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | elf.h | 217 Elf32_Half e_shnum; member 234 Elf64_Half e_shnum; member
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | bpf_load.c | 542 for (i = 1; i < ehdr.e_shnum; i++) { in do_load_bpf_file() 599 for (i = 1; i < ehdr.e_shnum; i++) { in do_load_bpf_file() 628 for (i = 1; i < ehdr.e_shnum; i++) { in do_load_bpf_file()
|
| /OK3568_Linux_fs/kernel/arch/s390/kernel/ |
| H A D | module.c | 121 for (i = 0; i < hdr->e_shnum; i++) in module_frob_arch_sections() 154 for (i = 0; i < hdr->e_shnum; i++) { in module_frob_arch_sections() 494 for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) { in module_finalize()
|