Home
last modified time | relevance | path

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

/Linux-v6.1/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.1/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.c531 shdr->sh_entsize = 0; in jit_add_debug_info()
565 shdr->sh_entsize = 0; in jit_add_debug_info()
599 shdr->sh_entsize = 0; in jit_add_debug_info()
Dsymbol-elf.c384 nr_rel_entries = shdr_rel_plt.sh_size / shdr_rel_plt.sh_entsize; in dso__synthesize_plt_symbols()
408 plt_header_size = shdr_plt.sh_entsize; in dso__synthesize_plt_symbols()
409 plt_entry_size = shdr_plt.sh_entsize; in dso__synthesize_plt_symbols()
1174 nr_syms = shdr.sh_size / shdr.sh_entsize; in dso__load_sym_internal()
/Linux-v6.1/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.1/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.1/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 …]
Dlibbpf.c3431 if (sh->sh_entsize != sizeof(Elf64_Rel) || in bpf_object__elf_collect()
3692 if (!sh || sh->sh_entsize != sizeof(Elf64_Sym)) in bpf_object__collect_externs()
3699 n = sh->sh_size / sh->sh_entsize; in bpf_object__collect_externs()
4156 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_prog_relos()
6448 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_map_relos()
8819 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_st_ops_relos()
10564 nr_syms = symbols->d_size / sh.sh_entsize; in elf_find_func_offset()
/Linux-v6.1/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.1/arch/mips/kernel/
Dvpe.c197 sechdrs[i].sh_entsize = ~0UL; in layout_sections()
205 || s->sh_entsize != ~0UL) in layout_sections()
207 s->sh_entsize = in layout_sections()
657 dest = v->load_addr + sechdrs[i].sh_entsize; in vpe_elfload()
/Linux-v6.1/include/uapi/linux/
Delf.h318 Elf32_Word sh_entsize; member
331 Elf64_Xword sh_entsize; /* Entry size if section holds table */ member
/Linux-v6.1/kernel/module/
Dkallsyms.c97 || (sec->sh_entsize & INIT_OFFSET_MASK)) in is_core_symbol()
119 symsect->sh_entsize = module_get_offset(mod, &mod->init_layout.size, symsect, in layout_symtab()
147 strsect->sh_entsize = module_get_offset(mod, &mod->init_layout.size, strsect, in layout_symtab()
Dmain.c1436 info->sechdrs[i].sh_entsize = ~0UL; in layout_sections()
1447 || s->sh_entsize != ~0UL in layout_sections()
1451 s->sh_entsize = module_get_offset(mod, sizep, s, i); in layout_sections()
1481 || s->sh_entsize != ~0UL in layout_sections()
1484 s->sh_entsize = (module_get_offset(mod, &mod->init_layout.size, s, i) in layout_sections()
2181 if (shdr->sh_entsize & INIT_OFFSET_MASK) in move_module()
2183 + (shdr->sh_entsize & ~INIT_OFFSET_MASK); in move_module()
2185 dest = mod->data_layout.base + shdr->sh_entsize; in move_module()
2187 dest = mod->core_layout.base + shdr->sh_entsize; in move_module()
/Linux-v6.1/tools/objtool/
Delf.c422 symbols_nr = symtab->sh.sh_size / symtab->sh.sh_entsize; in read_symbols()
576 sec->reloc->sh.sh_size += sec->reloc->sh.sh_entsize; in elf_add_reloc()
619 Elf64_Xword entsize = symtab->sh.sh_entsize; in elf_update_symbol()
767 new_idx = symtab->sh.sh_size / symtab->sh.sh_entsize; in elf_create_section_symbol()
877 for (i = 0; i < sec->sh.sh_size / sec->sh.sh_entsize; i++) { in read_relocs()
1072 sec->sh.sh_entsize = entsize; in elf_create_section()
/Linux-v6.1/drivers/remoteproc/
Dremoteproc_elf_helpers.h81 ELF_GEN_FIELD_GET_SET(shdr, sh_entsize, u16) in ELF_GEN_FIELD_GET_SET()
/Linux-v6.1/arch/mips/boot/
Delf2ecoff.c217 s->sh_entsize = swab32(s->sh_entsize); in convert_elf_shdrs()
/Linux-v6.1/arch/mips/boot/tools/
Drelocs.c288 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); in read_shdrs()
/Linux-v6.1/tools/testing/selftests/sgx/
Dload.c152 num_sym = sections[i].sh_size / sections[i].sh_entsize; in encl_get_entry()
/Linux-v6.1/arch/x86/tools/
Drelocs.c464 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); in read_shdrs()
/Linux-v6.1/tools/bpf/resolve_btfids/
Dmain.c417 n = sh.sh_size / sh.sh_entsize; in symbols_collect()
/Linux-v6.1/arch/ia64/kernel/
Dmodule.c802 if (target_sec->sh_entsize == ~0UL) in apply_relocate_add()
/Linux-v6.1/scripts/mod/
Dmodpost.c513 sechdrs[i].sh_entsize = TO_NATIVE(sechdrs[i].sh_entsize); in parse_elf()