/linux-master/arch/mips/vdso/ |
H A D | genvdso.h | 13 uint16_t sh_count, sh_entsize, i; local 17 sh_entsize = swap_uint16(ehdr->e_shentsize); 19 shdr = shdrs + (sh_entsize * swap_uint16(ehdr->e_shstrndx)); 23 shdr = shdrs + (i * sh_entsize); 51 shdr->sh_entsize = shdr->sh_size; 65 uint16_t sh_count, sh_entsize, st_count, st_entsize, i, j; local 71 sh_entsize = swap_uint16(ehdr->e_shentsize); 74 shdr = shdrs + (i * sh_entsize); 97 st_entsize = FUNC(swap_uint)(shdr->sh_entsize); 101 shdr = shdrs + (swap_uint32(shdr->sh_link) * sh_entsize); [all...] |
/linux-master/tools/perf/util/ |
H A D | genelf.c | 200 shdr->sh_entsize = 0; 234 shdr->sh_entsize = 0; 336 shdr->sh_entsize = 0; 382 shdr->sh_entsize = 0; 418 shdr->sh_entsize = sizeof(Elf_Sym); 461 shdr->sh_entsize = 0; 505 shdr->sh_entsize = 0;
|
H A D | genelf_debug.c | 542 shdr->sh_entsize = 0; 576 shdr->sh_entsize = 0; 610 shdr->sh_entsize = 0;
|
H A D | symbol-elf.c | 460 *plt_entry_size = shdr_plt->sh_entsize; 467 *plt_header_size = shdr_plt->sh_entsize; 468 *plt_entry_size = shdr_plt->sh_entsize; 547 if (!scn || !rela_dyn_shdr.sh_link || !rela_dyn_shdr.sh_entsize) 550 di->nr_entries = rela_dyn_shdr.sh_size / rela_dyn_shdr.sh_entsize; 645 if (!scn || !shdr.sh_entsize) 651 for (i = 0; i < shdr.sh_size; i += shdr.sh_entsize) { 654 sym = symbol__new(shdr.sh_offset + i, shdr.sh_entsize, STB_GLOBAL, STT_FUNC, buf); 789 ri.nr_entries = shdr_rel_plt.sh_size / shdr_rel_plt.sh_entsize; 1619 nr_syms = shdr.sh_size / shdr.sh_entsize; [all...] |
/linux-master/arch/sparc/vdso/ |
H A D | vdso2c.h | 80 i < GET_BE(&symtab_hdr->sh_size) / GET_BE(&symtab_hdr->sh_entsize); 85 GET_BE(&symtab_hdr->sh_entsize) * i;
|
/linux-master/scripts/ |
H A D | recordmcount.h | 317 mcsec.sh_entsize = _w(_size); 332 mcsec.sh_entsize = _w(rel_entsize); 414 unsigned rel_entsize = _w(relhdr->sh_entsize); 461 unsigned rel_entsize = _w(relhdr->sh_entsize); 527 unsigned const nsym = _w(symhdr->sh_size) / _w(symhdr->sh_entsize); 675 rel_entsize = _w(relhdr->sh_entsize);
|
H A D | insert-sys-cert.c | 144 n = symtab->sh_size / symtab->sh_entsize;
|
/linux-master/tools/objtool/include/objtool/ |
H A D | elf.h | 196 return sec->sh.sh_size / sec->sh.sh_entsize; 208 return rsec->data->d_buf + (reloc_idx(reloc) * rsec->sh.sh_entsize); 219 return reloc->sec->sh.sh_entsize < 16;
|
/linux-master/arch/x86/entry/vdso/ |
H A D | vdso2c.h | 125 syms_nr = GET_LE(&symtab_hdr->sh_size) / GET_LE(&symtab_hdr->sh_entsize); 130 GET_LE(&symtab_hdr->sh_entsize) * i;
|
/linux-master/kernel/module/ |
H A D | kallsyms.c | 95 type = sec->sh_entsize >> SH_ENTSIZE_TYPE_SHIFT; 124 symsect->sh_entsize = module_get_offset_and_type(mod, MOD_INIT_DATA, 151 strsect->sh_entsize = module_get_offset_and_type(mod, MOD_INIT_DATA,
|
H A D | main.c | 1544 || s->sh_entsize != ~0UL 1551 s->sh_entsize = module_get_offset_and_type(mod, type, s, i); 1560 * sizes, and place the offsets into sh_entsize fields: high bit means it 1568 info->sechdrs[i].sh_entsize = ~0UL; 2264 enum mod_mem_type type = shdr->sh_entsize >> SH_ENTSIZE_TYPE_SHIFT; 2269 dest = mod->mem[type].base + (shdr->sh_entsize & SH_ENTSIZE_OFFSET_MASK); 2405 * Determine total sizes, and put offsets in sh_entsize. For now
|
/linux-master/drivers/remoteproc/ |
H A D | remoteproc_elf_helpers.h | 81 ELF_GEN_FIELD_GET_SET(shdr, sh_entsize, u16)
|
/linux-master/tools/lib/bpf/ |
H A D | linker.c | 377 sec->shdr->sh_entsize = 0; 417 sec->shdr->sh_entsize = sizeof(Elf64_Sym); 788 if (sec->shdr->sh_entsize != sizeof(Elf64_Sym)) 790 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) 805 n = sec->shdr->sh_size / sec->shdr->sh_entsize; 862 if (sec->shdr->sh_entsize != sizeof(Elf64_Rel)) 864 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) 902 n = sec->shdr->sh_size / sec->shdr->sh_entsize; 1042 shdr->sh_entsize = src_sec->shdr->sh_entsize; [all...] |
H A D | elf.c | 128 iter->nr_syms = iter->syms->d_size / sh.sh_entsize;
|
H A D | libbpf.c | 3849 if (sh->sh_entsize != sizeof(Elf64_Rel) || 4116 if (!sh || sh->sh_entsize != sizeof(Elf64_Sym)) 4123 n = sh->sh_size / sh->sh_entsize; 4602 nrels = shdr->sh_size / shdr->sh_entsize; 7052 nrels = shdr->sh_size / shdr->sh_entsize; 9615 nrels = shdr->sh_size / shdr->sh_entsize;
|
/linux-master/include/uapi/linux/ |
H A D | elf.h | 318 Elf32_Word sh_entsize; member in struct:elf32_shdr 331 Elf64_Xword sh_entsize; /* Entry size if section holds table */ member in struct:elf64_shdr
|
/linux-master/arch/s390/tools/ |
H A D | relocs.c | 211 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize);
|
/linux-master/arch/mips/kernel/ |
H A D | vpe.c | 180 sizes, and place the offsets into sh_entsize fields: high bit means it 197 sechdrs[i].sh_entsize = ~0UL; 208 || s->sh_entsize != ~0UL) 210 s->sh_entsize = 656 dest = v->load_addr + sechdrs[i].sh_entsize;
|
/linux-master/arch/mips/boot/tools/ |
H A D | relocs.c | 288 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize);
|
/linux-master/arch/mips/boot/ |
H A D | elf2ecoff.c | 217 s->sh_entsize = swab32(s->sh_entsize);
|
/linux-master/tools/testing/selftests/sgx/ |
H A D | load.c | 152 num_sym = sections[i].sh_size / sections[i].sh_entsize;
|
/linux-master/tools/objtool/ |
H A D | elf.c | 600 Elf64_Xword entsize = symtab->sh.sh_entsize; 780 symtab->sh.sh_size += symtab->sh.sh_entsize; 1142 sec->sh.sh_entsize = entsize;
|
/linux-master/arch/x86/tools/ |
H A D | relocs.c | 464 sec->shdr.sh_entsize = elf_xword_to_cpu(shdr.sh_entsize);
|
/linux-master/tools/bpf/resolve_btfids/ |
H A D | main.c | 435 n = sh.sh_size / sh.sh_entsize;
|
/linux-master/scripts/mod/ |
H A D | modpost.c | 501 sechdrs[i].sh_entsize = TO_NATIVE(sechdrs[i].sh_entsize);
|