/linux-6.12.1/arch/mips/vdso/ |
D | genvdso.h | 13 uint16_t sh_count, sh_entsize, i; in FUNC() local 17 sh_entsize = swap_uint16(ehdr->e_shentsize); in FUNC() 19 shdr = shdrs + (sh_entsize * swap_uint16(ehdr->e_shstrndx)); in FUNC() 23 shdr = shdrs + (i * sh_entsize); in FUNC() 51 shdr->sh_entsize = shdr->sh_size; in FUNC() 65 uint16_t sh_count, sh_entsize, st_count, st_entsize, i, j; in FUNC() local 71 sh_entsize = swap_uint16(ehdr->e_shentsize); in FUNC() 74 shdr = shdrs + (i * sh_entsize); in FUNC() 97 st_entsize = FUNC(swap_uint)(shdr->sh_entsize); in FUNC() 101 shdr = shdrs + (swap_uint32(shdr->sh_link) * sh_entsize); in FUNC()
|
/linux-6.12.1/tools/perf/util/ |
D | genelf.c | 195 shdr->sh_entsize = 0; in jit_add_eh_frame_info() 229 shdr->sh_entsize = 0; in jit_add_eh_frame_info() 331 shdr->sh_entsize = 0; in jit_write_elf() 377 shdr->sh_entsize = 0; in jit_write_elf() 413 shdr->sh_entsize = sizeof(Elf_Sym); in jit_write_elf() 456 shdr->sh_entsize = 0; in jit_write_elf() 500 shdr->sh_entsize = 0; in jit_write_elf()
|
D | genelf_debug.c | 542 shdr->sh_entsize = 0; in jit_add_debug_info() 576 shdr->sh_entsize = 0; in jit_add_debug_info() 610 shdr->sh_entsize = 0; in jit_add_debug_info()
|
D | symbol-elf.c | 460 *plt_entry_size = shdr_plt->sh_entsize; in get_plt_sizes() 467 *plt_header_size = shdr_plt->sh_entsize; in get_plt_sizes() 468 *plt_entry_size = shdr_plt->sh_entsize; in get_plt_sizes() 547 if (!scn || !rela_dyn_shdr.sh_link || !rela_dyn_shdr.sh_entsize) in get_rela_dyn_info() 550 di->nr_entries = rela_dyn_shdr.sh_size / rela_dyn_shdr.sh_entsize; in get_rela_dyn_info() 645 if (!scn || !shdr.sh_entsize) in dso__synthesize_plt_got_symbols() 651 for (i = 0; i < shdr.sh_size; i += shdr.sh_entsize) { in dso__synthesize_plt_got_symbols() 654 sym = symbol__new(shdr.sh_offset + i, shdr.sh_entsize, STB_GLOBAL, STT_FUNC, buf); in dso__synthesize_plt_got_symbols() 789 ri.nr_entries = shdr_rel_plt.sh_size / shdr_rel_plt.sh_entsize; in dso__synthesize_plt_symbols() 1611 nr_syms = shdr.sh_size / shdr.sh_entsize; in dso__load_sym_internal()
|
/linux-6.12.1/scripts/ |
D | recordmcount.h | 317 mcsec.sh_entsize = _w(_size); in append_func() 332 mcsec.sh_entsize = _w(rel_entsize); in append_func() 414 unsigned rel_entsize = _w(relhdr->sh_entsize); in sift_rel_mcount() 461 unsigned rel_entsize = _w(relhdr->sh_entsize); in nop_mcount() 527 unsigned const nsym = _w(symhdr->sh_size) / _w(symhdr->sh_entsize); in find_secsym_ndx() 675 rel_entsize = _w(relhdr->sh_entsize); in do_func()
|
D | insert-sys-cert.c | 144 n = symtab->sh_size / symtab->sh_entsize; in find_elf_symbol()
|
/linux-6.12.1/arch/sparc/vdso/ |
D | vdso2c.h | 80 i < GET_BE(&symtab_hdr->sh_size) / GET_BE(&symtab_hdr->sh_entsize); in BITSFUNC() 85 GET_BE(&symtab_hdr->sh_entsize) * i; in BITSFUNC()
|
/linux-6.12.1/tools/objtool/include/objtool/ |
D | elf.h | 197 return sec->sh.sh_size / sec->sh.sh_entsize; in sec_num_entries() 209 return rsec->data->d_buf + (reloc_idx(reloc) * rsec->sh.sh_entsize); in reloc_rel() 220 return reloc->sec->sh.sh_entsize < 16; in is_32bit_reloc()
|
/linux-6.12.1/tools/lib/bpf/ |
D | linker.c | 377 sec->shdr->sh_entsize = 0; in init_output_elf() 417 sec->shdr->sh_entsize = sizeof(Elf64_Sym); in init_output_elf() 788 if (sec->shdr->sh_entsize != sizeof(Elf64_Sym)) in linker_sanity_check_elf_symtab() 790 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_symtab() 805 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_symtab() 862 if (sec->shdr->sh_entsize != sizeof(Elf64_Rel)) in linker_sanity_check_elf_relos() 864 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_relos() 902 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_relos() 1056 shdr->sh_entsize = src_sec->shdr->sh_entsize; in init_sec() 1095 if (dst->shdr->sh_entsize != src->shdr->sh_entsize) { in secs_match() [all …]
|
D | elf.c | 131 iter->nr_syms = iter->syms->d_size / sh.sh_entsize; in elf_sym_iter_new()
|
D | libbpf.c | 3920 if (sh->sh_entsize != sizeof(Elf64_Rel) || in bpf_object__elf_collect() 4187 if (!sh || sh->sh_entsize != sizeof(Elf64_Sym)) in bpf_object__collect_externs() 4194 n = sh->sh_size / sh->sh_entsize; in bpf_object__collect_externs() 4673 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_prog_relos() 7137 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_map_relos() 9738 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_st_ops_relos()
|
/linux-6.12.1/arch/x86/entry/vdso/ |
D | vdso2c.h | 125 syms_nr = GET_LE(&symtab_hdr->sh_size) / GET_LE(&symtab_hdr->sh_entsize); in BITSFUNC() 130 GET_LE(&symtab_hdr->sh_entsize) * i; in BITSFUNC()
|
/linux-6.12.1/arch/mips/kernel/ |
D | vpe.c | 197 sechdrs[i].sh_entsize = ~0UL; in layout_sections() 208 || s->sh_entsize != ~0UL) in layout_sections() 210 s->sh_entsize = in layout_sections() 656 dest = v->load_addr + sechdrs[i].sh_entsize; in vpe_elfload()
|
/linux-6.12.1/kernel/module/ |
D | kallsyms.c | 95 type = sec->sh_entsize >> SH_ENTSIZE_TYPE_SHIFT; in is_core_symbol() 124 symsect->sh_entsize = module_get_offset_and_type(mod, MOD_INIT_DATA, in layout_symtab() 151 strsect->sh_entsize = module_get_offset_and_type(mod, MOD_INIT_DATA, in layout_symtab()
|
D | main.c | 1569 || s->sh_entsize != ~0UL in __layout_sections() 1576 s->sh_entsize = module_get_offset_and_type(mod, type, s, i); in __layout_sections() 1593 info->sechdrs[i].sh_entsize = ~0UL; in layout_sections() 2269 enum mod_mem_type type = shdr->sh_entsize >> SH_ENTSIZE_TYPE_SHIFT; in move_module() 2274 dest = mod->mem[type].base + (shdr->sh_entsize & SH_ENTSIZE_OFFSET_MASK); in move_module()
|
/linux-6.12.1/include/uapi/linux/ |
D | elf.h | 318 Elf32_Word sh_entsize; member 331 Elf64_Xword sh_entsize; /* Entry size if section holds table */ member
|
/linux-6.12.1/arch/s390/tools/ |
D | relocs.c | 211 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); in read_shdrs()
|
/linux-6.12.1/drivers/remoteproc/ |
D | remoteproc_elf_helpers.h | 81 ELF_GEN_FIELD_GET_SET(shdr, sh_entsize, u16) in ELF_GEN_FIELD_GET_SET()
|
/linux-6.12.1/arch/mips/boot/tools/ |
D | relocs.c | 288 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); in read_shdrs()
|
/linux-6.12.1/arch/mips/boot/ |
D | elf2ecoff.c | 217 s->sh_entsize = swab32(s->sh_entsize); in convert_elf_shdrs()
|
/linux-6.12.1/tools/objtool/ |
D | elf.c | 600 Elf64_Xword entsize = symtab->sh.sh_entsize; in elf_update_symbol() 780 symtab->sh.sh_size += symtab->sh.sh_entsize; in __elf_create_symbol() 1142 sec->sh.sh_entsize = entsize; in elf_create_section()
|
/linux-6.12.1/tools/testing/selftests/sgx/ |
D | load.c | 152 num_sym = sections[i].sh_size / sections[i].sh_entsize; in encl_get_entry()
|
/linux-6.12.1/arch/x86/tools/ |
D | relocs.c | 463 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); in read_shdrs()
|
/linux-6.12.1/tools/bpf/resolve_btfids/ |
D | main.c | 443 n = sh.sh_size / sh.sh_entsize; in symbols_collect()
|
/linux-6.12.1/scripts/mod/ |
D | modpost.c | 497 sechdrs[i].sh_entsize = TO_NATIVE(sechdrs[i].sh_entsize); in parse_elf()
|