| /linux/arch/mips/vdso/ |
| H A 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/tools/perf/util/ |
| H A D | genelf.c | 116 shdr->sh_entsize = 0; in jit_add_eh_frame_info() 150 shdr->sh_entsize = 0; in jit_add_eh_frame_info() 272 shdr->sh_entsize = 0; in jit_write_elf() 321 shdr->sh_entsize = 0; in jit_write_elf() 357 shdr->sh_entsize = sizeof(Elf_Sym); in jit_write_elf() 402 shdr->sh_entsize = 0; in jit_write_elf() 448 shdr->sh_entsize = 0; in jit_write_elf()
|
| H A 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()
|
| H A D | symbol-elf.c | 390 *plt_entry_size = shdr_plt->sh_entsize; in get_plt_sizes() 397 *plt_header_size = shdr_plt->sh_entsize; in get_plt_sizes() 398 *plt_entry_size = shdr_plt->sh_entsize; in get_plt_sizes() 477 if (!scn || !rela_dyn_shdr.sh_link || !rela_dyn_shdr.sh_entsize) in get_rela_dyn_info() 480 di->nr_entries = rela_dyn_shdr.sh_size / rela_dyn_shdr.sh_entsize; in get_rela_dyn_info() 575 if (!scn || !shdr.sh_entsize) in dso__synthesize_plt_got_symbols() 581 for (i = 0; i < shdr.sh_size; i += shdr.sh_entsize) { in dso__synthesize_plt_got_symbols() 584 sym = symbol__new(shdr.sh_offset + i, shdr.sh_entsize, STB_GLOBAL, STT_FUNC, buf); in dso__synthesize_plt_got_symbols() 719 ri.nr_entries = shdr_rel_plt.sh_size / shdr_rel_plt.sh_entsize; in dso__synthesize_plt_symbols() 1543 nr_syms = shdr.sh_size / shdr.sh_entsize; in dso__load_sym_internal() [all...] |
| /linux/scripts/ |
| H A 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()
|
| H A D | insert-sys-cert.c | 144 n = symtab->sh_size / symtab->sh_entsize; in find_elf_symbol()
|
| /linux/scripts/gendwarfksyms/ |
| H A D | symbols.c | 245 if (shdr->sh_entsize != sym_size) in elf_for_each_global() 246 error("expected sh_entsize (%" PRIu64 ") to be %zu", in elf_for_each_global() 247 shdr->sh_entsize, sym_size); in elf_for_each_global() 249 nsyms = shdr->sh_size / shdr->sh_entsize; in elf_for_each_global()
|
| /linux/tools/objtool/include/objtool/ |
| H A D | elf.h | 313 return sec->sh.sh_size / sec->sh.sh_entsize; in set_jump_table() 325 return rsec->data->d_buf + (reloc_idx(reloc) * rsec->sh.sh_entsize); in set_sym_next_reloc() 336 return reloc->sec->sh.sh_entsize < 16;
|
| /linux/tools/lib/bpf/ |
| H A D | linker.c | 425 sec->shdr->sh_entsize = 0; in init_output_elf() 467 sec->shdr->sh_entsize = sizeof(Elf64_Sym); in init_output_elf() 917 if (sec->shdr->sh_entsize != sizeof(Elf64_Sym)) in linker_sanity_check_elf_symtab() 919 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_symtab() 934 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_symtab() 991 if (sec->shdr->sh_entsize != sizeof(Elf64_Rel)) in linker_sanity_check_elf_relos() 993 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_relos() 1031 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_relos() 1185 shdr->sh_entsize = src_sec->shdr->sh_entsize; in init_sec() 1224 if (dst->shdr->sh_entsize != src->shdr->sh_entsize) { in secs_match() [all …]
|
| H A D | libbpf.c | 4039 if (sh->sh_entsize != sizeof(Elf64_Rel) || in bpf_object__elf_collect() 4310 if (!sh || sh->sh_entsize != sizeof(Elf64_Sym)) in bpf_object__collect_externs() 4317 n = sh->sh_size / sh->sh_entsize; in bpf_object__collect_externs() 4856 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_prog_relos() 7569 nrels = shdr->sh_size / shdr->sh_entsize; in bpf_object__collect_map_relos() 10371 nrels = shdr->sh_size / shdr->sh_entsize; in libbpf_find_vmlinux_btf_id()
|
| /linux/arch/mips/kernel/ |
| H A D | vpe.c | 198 sechdrs[i].sh_entsize = ~0UL; in layout_sections() 209 || s->sh_entsize != ~0UL) in layout_sections() 211 s->sh_entsize = in layout_sections() 657 dest = v->load_addr + sechdrs[i].sh_entsize; in vpe_elfload()
|
| /linux/arch/s390/tools/ |
| H A D | relocs.c | 211 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); in read_shdrs()
|
| /linux/drivers/remoteproc/ |
| H A D | remoteproc_elf_helpers.h | 81 ELF_GEN_FIELD_GET_SET(shdr, sh_entsize, u16) in ELF_GEN_FIELD_GET_SET()
|
| /linux/arch/mips/boot/ |
| H A D | elf2ecoff.c | 217 s->sh_entsize = swab32(s->sh_entsize); in convert_elf_shdrs()
|
| /linux/arch/mips/boot/tools/ |
| H A D | relocs.c | 289 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); in read_shdrs()
|
| /linux/tools/testing/selftests/sgx/ |
| H A D | load.c | 152 num_sym = sections[i].sh_size / sections[i].sh_entsize; in encl_get_entry()
|
| /linux/tools/objtool/ |
| H A D | klp-diff.c | 634 patched_sec->sh.sh_entsize, in __clone_symbol() 1382 entry_size = sec->sh.sh_entsize; in create_fake_symbols() 1782 patched_sec->sh.sh_entsize, in copy_import_ns()
|
| H A D | elf.c | 789 Elf64_Xword entsize = symtab->sh.sh_entsize; in elf_update_symbol() 1005 symtab->sh.sh_size += symtab->sh.sh_entsize; in elf_create_symbol() 1480 sec->sh.sh_entsize = entsize; in elf_create_section()
|
| H A D | check.c | 2366 if (sec->sh.sh_entsize != 8) { in read_annotate() 2372 sec->sh.sh_entsize = 8; in read_annotate()
|
| /linux/kernel/module/ |
| H A D | main.c | 1719 || s->sh_entsize != ~0UL in __layout_sections() 1735 s->sh_entsize = ((unsigned long)(type) & SH_ENTSIZE_TYPE_MASK) in __layout_sections() 1740 s->sh_entsize = module_get_offset_and_type(mod, type, s, i); in __layout_sections() 1757 info->sechdrs[i].sh_entsize = ~0UL; in layout_sections() 2835 enum mod_mem_type type = shdr->sh_entsize >> SH_ENTSIZE_TYPE_SHIFT; in move_module() 2836 unsigned long offset = shdr->sh_entsize & SH_ENTSIZE_OFFSET_MASK; in move_module()
|
| /linux/arch/x86/tools/ |
| H A D | relocs.c | 438 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize); in read_shdrs()
|
| /linux/scripts/mod/ |
| H A D | modpost.c | 508 sechdrs[i].sh_entsize = TO_NATIVE(sechdrs[i].sh_entsize); in parse_elf()
|
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 497 n = sh.sh_size / sh.sh_entsize; in symbols_collect()
|