Home
last modified time | relevance | path

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

/Linux-v6.6/arch/mips/vdso/
Dgenvdso.h13 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-v6.6/tools/perf/util/
Dgenelf.c200 shdr->sh_entsize = 0; in jit_add_eh_frame_info()
234 shdr->sh_entsize = 0; in jit_add_eh_frame_info()
336 shdr->sh_entsize = 0; in jit_write_elf()
382 shdr->sh_entsize = 0; in jit_write_elf()
418 shdr->sh_entsize = sizeof(Elf_Sym); in jit_write_elf()
461 shdr->sh_entsize = 0; in jit_write_elf()
505 shdr->sh_entsize = 0; in jit_write_elf()
Dgenelf_debug.c542 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()
Dsymbol-elf.c459 *plt_entry_size = shdr_plt->sh_entsize; in get_plt_sizes()
466 *plt_header_size = shdr_plt->sh_entsize; in get_plt_sizes()
467 *plt_entry_size = shdr_plt->sh_entsize; in get_plt_sizes()
546 if (!scn || !rela_dyn_shdr.sh_link || !rela_dyn_shdr.sh_entsize) in get_rela_dyn_info()
549 di->nr_entries = rela_dyn_shdr.sh_size / rela_dyn_shdr.sh_entsize; in get_rela_dyn_info()
644 if (!scn || !shdr.sh_entsize) in dso__synthesize_plt_got_symbols()
650 for (i = 0; i < shdr.sh_size; i += shdr.sh_entsize) { in dso__synthesize_plt_got_symbols()
653 sym = symbol__new(shdr.sh_offset + i, shdr.sh_entsize, STB_GLOBAL, STT_FUNC, buf); in dso__synthesize_plt_got_symbols()
788 ri.nr_entries = shdr_rel_plt.sh_size / shdr_rel_plt.sh_entsize; in dso__synthesize_plt_symbols()
1551 nr_syms = shdr.sh_size / shdr.sh_entsize; in dso__load_sym_internal()
/Linux-v6.6/scripts/
Drecordmcount.h317 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()
Dinsert-sys-cert.c144 n = symtab->sh_size / symtab->sh_entsize; in find_elf_symbol()
/Linux-v6.6/arch/sparc/vdso/
Dvdso2c.h80 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-v6.6/tools/objtool/include/objtool/
Delf.h195 return sec->sh.sh_size / sec->sh.sh_entsize; in sec_num_entries()
207 return rsec->data->d_buf + (reloc_idx(reloc) * rsec->sh.sh_entsize); in reloc_rel()
218 return reloc->sec->sh.sh_entsize < 16; in is_32bit_reloc()
/Linux-v6.6/tools/lib/bpf/
Dlinker.c377 sec->shdr->sh_entsize = 0; in init_output_elf()
417 sec->shdr->sh_entsize = sizeof(Elf64_Sym); in init_output_elf()
769 if (sec->shdr->sh_entsize != sizeof(Elf64_Sym)) in linker_sanity_check_elf_symtab()
771 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_symtab()
786 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_symtab()
843 if (sec->shdr->sh_entsize != sizeof(Elf64_Rel)) in linker_sanity_check_elf_relos()
845 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_relos()
883 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_relos()
1023 shdr->sh_entsize = src_sec->shdr->sh_entsize; in init_sec()
1062 if (dst->shdr->sh_entsize != src->shdr->sh_entsize) { in secs_match()
[all …]
Delf.c111 iter->nr_syms = iter->syms->d_size / sh.sh_entsize; in elf_sym_iter_new()
Dlibbpf.c3522 if (sh->sh_entsize != sizeof(Elf64_Rel) || in bpf_object__elf_collect()
3787 if (!sh || sh->sh_entsize != sizeof(Elf64_Sym)) in bpf_object__collect_externs()
3794 n = sh->sh_size / sh->sh_entsize; in bpf_object__collect_externs()
4262 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_prog_relos()
6616 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_map_relos()
9136 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_st_ops_relos()
/Linux-v6.6/arch/x86/entry/vdso/
Dvdso2c.h125 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-v6.6/arch/mips/kernel/
Dvpe.c197 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-v6.6/kernel/module/
Dkallsyms.c95 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()
Dmain.c1544 || s->sh_entsize != ~0UL in __layout_sections()
1551 s->sh_entsize = module_get_offset_and_type(mod, type, s, i); in __layout_sections()
1568 info->sechdrs[i].sh_entsize = ~0UL; in layout_sections()
2261 enum mod_mem_type type = shdr->sh_entsize >> SH_ENTSIZE_TYPE_SHIFT; in move_module()
2266 dest = mod->mem[type].base + (shdr->sh_entsize & SH_ENTSIZE_OFFSET_MASK); in move_module()
/Linux-v6.6/include/uapi/linux/
Delf.h318 Elf32_Word sh_entsize; member
331 Elf64_Xword sh_entsize; /* Entry size if section holds table */ member
/Linux-v6.6/drivers/remoteproc/
Dremoteproc_elf_helpers.h81 ELF_GEN_FIELD_GET_SET(shdr, sh_entsize, u16) in ELF_GEN_FIELD_GET_SET()
/Linux-v6.6/arch/mips/boot/
Delf2ecoff.c217 s->sh_entsize = swab32(s->sh_entsize); in convert_elf_shdrs()
/Linux-v6.6/arch/mips/boot/tools/
Drelocs.c288 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); in read_shdrs()
/Linux-v6.6/tools/objtool/
Delf.c602 Elf64_Xword entsize = symtab->sh.sh_entsize; in elf_update_symbol()
782 symtab->sh.sh_size += symtab->sh.sh_entsize; in __elf_create_symbol()
1144 sec->sh.sh_entsize = entsize; in elf_create_section()
/Linux-v6.6/tools/testing/selftests/sgx/
Dload.c152 num_sym = sections[i].sh_size / sections[i].sh_entsize; in encl_get_entry()
/Linux-v6.6/arch/x86/tools/
Drelocs.c464 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); in read_shdrs()
/Linux-v6.6/tools/bpf/resolve_btfids/
Dmain.c417 n = sh.sh_size / sh.sh_entsize; in symbols_collect()
/Linux-v6.6/arch/ia64/kernel/
Dmodule.c803 if (target_sec->sh_entsize == ~0UL) in apply_relocate_add()
/Linux-v6.6/scripts/mod/
Dmodpost.c512 sechdrs[i].sh_entsize = TO_NATIVE(sechdrs[i].sh_entsize); in parse_elf()