/Linux-v5.4/arch/powerpc/kernel/ |
D | module.c | 49 (void *)sect->sh_addr + sect->sh_size); in module_finalize() 55 (void *)sect->sh_addr + sect->sh_size); in module_finalize() 62 (void *)sect->sh_addr + sect->sh_size); in module_finalize() 69 me->arch.end_opd = sect->sh_addr + sect->sh_size; in module_finalize() 78 (void *)sect->sh_addr + sect->sh_size); in module_finalize() 85 (void *)sect->sh_addr + sect->sh_size); in module_finalize()
|
D | module_32.c | 112 sechdrs[i].sh_size / sizeof(Elf32_Rela)); in get_plt_size() 120 sechdrs[i].sh_size / sizeof(Elf32_Rela), in get_plt_size() 125 sechdrs[i].sh_size in get_plt_size() 154 sechdrs[me->arch.core_plt_section].sh_size in module_frob_arch_sections() 156 sechdrs[me->arch.init_plt_section].sh_size in module_frob_arch_sections() 222 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add()
|
D | module_64.c | 258 sechdrs[i].sh_size / sizeof(Elf64_Rela)); in get_stubs_size() 266 sechdrs[i].sh_size / sizeof(Elf64_Rela), in get_stubs_size() 270 sechdrs[i].sh_size in get_stubs_size() 328 numsyms = sechdrs[symindex].sh_size / sizeof(Elf64_Sym); in find_dot_toc() 357 sechdrs[i].sh_size); in module_frob_arch_sections() 365 sechdrs[i].sh_size / sizeof(Elf64_Sym), in module_frob_arch_sections() 383 sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs); in module_frob_arch_sections() 434 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*stubs); in stub_for_addr() 547 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rela); i++) { in apply_relocate_add() 786 num_stubs = sechdrs[me->arch.stubs_section].sh_size / sizeof(*entry); in create_ftrace_stub()
|
/Linux-v5.4/arch/mips/boot/tools/ |
D | relocs.c | 284 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs() 304 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs() 307 sec->shdr.sh_size); in read_strtabs() 313 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) != in read_strtabs() 314 sec->shdr.sh_size) in read_strtabs() 328 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs() 331 sec->shdr.sh_size); in read_symtabs() 337 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) != in read_symtabs() 338 sec->shdr.sh_size) in read_symtabs() 341 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { in read_symtabs() [all …]
|
/Linux-v5.4/arch/x86/kernel/ |
D | module.c | 102 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 143 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 246 apply_alternatives(aseg, aseg + alt->sh_size); in module_finalize() 252 lseg, lseg + locks->sh_size, in module_finalize() 253 tseg, tseg + text->sh_size); in module_finalize() 258 apply_paravirt(pseg, pseg + para->sh_size); in module_finalize() 265 unwind_module_init(me, (void *)orc_ip->sh_addr, orc_ip->sh_size, in module_finalize() 266 (void *)orc->sh_addr, orc->sh_size); in module_finalize()
|
D | livepatch.c | 46 apply_alternatives(aseg, aseg + alt->sh_size); in arch_klp_init_object_loaded() 51 apply_paravirt(pseg, pseg + para->sh_size); in arch_klp_init_object_loaded()
|
/Linux-v5.4/arch/unicore32/kernel/ |
D | module.c | 39 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate() 46 (symsec->sh_size / sizeof(Elf32_Sym))) { in apply_relocate() 56 dstsec->sh_size - sizeof(u32)) { in apply_relocate() 60 dstsec->sh_size); in apply_relocate()
|
/Linux-v5.4/arch/x86/tools/ |
D | relocs.c | 286 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup() 398 shnum = elf_xword_to_cpu(shdr.sh_size); in read_ehdr() 432 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs() 451 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs() 454 sec->shdr.sh_size); in read_strtabs() 460 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) in read_strtabs() 461 != sec->shdr.sh_size) { in read_strtabs() 476 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs() 479 sec->shdr.sh_size); in read_symtabs() 485 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) in read_symtabs() [all …]
|
/Linux-v5.4/arch/nds32/kernel/ |
D | module.c | 123 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rela); i++, rel++) { in apply_relocate_add() 131 || offset > (symsec->sh_size / sizeof(Elf32_Sym))) { in apply_relocate_add() 140 || rel->r_offset > dstsec->sh_size - sizeof(u16)) { in apply_relocate_add() 143 relindex, i, rel->r_offset, dstsec->sh_size); in apply_relocate_add() 256 relindex, i, rel->r_offset, dstsec->sh_size); in apply_relocate_add() 263 relindex, i, rel->r_offset, dstsec->sh_size); in apply_relocate_add()
|
/Linux-v5.4/arch/arm/kernel/ |
D | module.c | 75 for (i = 0; i < relsec->sh_size / sizeof(Elf32_Rel); i++, rel++) { in apply_relocate() 86 if (offset < 0 || offset > (symsec->sh_size / sizeof(Elf32_Sym))) { in apply_relocate() 95 if (rel->r_offset < 0 || rel->r_offset > dstsec->sh_size - sizeof(u32)) { in apply_relocate() 98 rel->r_offset, dstsec->sh_size); in apply_relocate() 387 maps[i].unw_sec->sh_size, in module_finalize() 389 maps[i].txt_sec->sh_size); in module_finalize() 394 fixup_pv_table((void *)s->sh_addr, s->sh_size); in module_finalize() 399 fixup_smp((void *)s->sh_addr, s->sh_size); in module_finalize()
|
D | module-plts.c | 62 BUG_ON(pltsec->plt_count * PLT_ENT_SIZE > pltsec->plt->sh_size); in get_module_plt() 220 int numrels = s->sh_size / sizeof(Elf32_Rel); in module_frob_arch_sections() 244 mod->arch.core.plt->sh_size = round_up(core_plts * PLT_ENT_SIZE, in module_frob_arch_sections() 251 mod->arch.init.plt->sh_size = round_up(init_plts * PLT_ENT_SIZE, in module_frob_arch_sections() 256 mod->arch.core.plt->sh_size, mod->arch.init.plt->sh_size); in module_frob_arch_sections()
|
/Linux-v5.4/arch/ia64/kernel/ |
D | module.c | 453 unsigned long numrels = s->sh_size/sizeof(Elf64_Rela); in module_frob_arch_sections() 469 mod->arch.core_plt->sh_size = core_plts * sizeof(struct plt_entry); in module_frob_arch_sections() 473 mod->arch.init_plt->sh_size = init_plts * sizeof(struct plt_entry); in module_frob_arch_sections() 477 mod->arch.got->sh_size = gots * sizeof(struct got_entry); in module_frob_arch_sections() 481 mod->arch.opd->sh_size = fdescs * sizeof(struct fdesc); in module_frob_arch_sections() 483 __func__, mod->arch.core_plt->sh_size, mod->arch.init_plt->sh_size, in module_frob_arch_sections() 484 mod->arch.got->sh_size, mod->arch.opd->sh_size); in module_frob_arch_sections() 523 BUG_ON(e >= (struct got_entry *) (mod->arch.got->sh_addr + mod->arch.got->sh_size)); in get_ltoff() 549 plt_end = (void *) plt + mod->arch.init_plt->sh_size; in get_plt() 552 plt_end = (void *) plt + mod->arch.core_plt->sh_size; in get_plt() [all …]
|
/Linux-v5.4/scripts/ |
D | sortextable.h | 119 num_sections = _r(&shdr[0].sh_size); in do_func() 137 relocs_size = _r(&shdr[i].sh_size); in do_func() 166 custom_sort(extab_image, _r(&extab_sec->sh_size)); in do_func() 168 int num_entries = _r(&extab_sec->sh_size) / extable_ent_size; in do_func() 178 for (i = 0; i < _r(&symtab_sec->sh_size) / sizeof(Elf_Sym); i++) { in do_func()
|
D | recordmcount.h | 193 uint_t const old_shstr_sh_size = _w(shstr->sh_size); in append_func() 195 uint_t t = 1 + strlen(mc_name) + _w(shstr->sh_size); in append_func() 198 shstr->sh_size = _w(t); in append_func() 228 mcsec.sh_size = _w((void *)mlocp - (void *)mloc0); in append_func() 243 mcsec.sh_size = _w((void *)mrelp - (void *)mrel0); in append_func() 331 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize; in sift_rel_mcount() 378 unsigned const nrel = _w(relhdr->sh_size) / rel_entsize; in nop_mcount() 441 unsigned const nsym = _w(symhdr->sh_size) / _w(symhdr->sh_entsize); in find_secsym_ndx() 514 totrelsz += _w(shdrp->sh_size); in tot_relsize()
|
D | insert-sys-cert.c | 75 num_sections = x[0].sh_size; in get_offset_from_address() 81 unsigned long end = start + x[i].sh_size; in get_offset_from_address() 144 n = symtab->sh_size / symtab->sh_entsize; in find_elf_symbol() 191 num_sections = x[0].sh_size; in get_symbol_table()
|
/Linux-v5.4/arch/alpha/kernel/ |
D | module.c | 95 nsyms = symtab->sh_size / sizeof(Elf64_Sym); in module_frob_arch_sections() 104 got->sh_size = 0; in module_frob_arch_sections() 112 nrela = s->sh_size / sizeof(Elf64_Rela); in module_frob_arch_sections() 116 &got->sh_size); in module_frob_arch_sections() 138 unsigned long i, n = sechdrs[relsec].sh_size / sizeof(*rela); in apply_relocate_add()
|
/Linux-v5.4/arch/sparc/kernel/ |
D | module.c | 74 for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) { in module_frob_arch_sections() 95 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add() 199 sun4v_patch_1insn_range(p, p + sun4v_1insn->sh_size); in do_patch_sections() 203 sun4v_patch_2insn_range(p, p + sun4v_2insn->sh_size); in do_patch_sections()
|
/Linux-v5.4/arch/riscv/kernel/ |
D | module-sections.c | 125 int num_rela = sechdrs[i].sh_size / sizeof(Elf_Rela); in module_frob_arch_sections() 141 mod->arch.plt.shdr->sh_size = (num_plts + 1) * sizeof(struct plt_entry); in module_frob_arch_sections() 148 mod->arch.got.shdr->sh_size = (num_gots + 1) * sizeof(struct got_entry); in module_frob_arch_sections() 155 mod->arch.got_plt.shdr->sh_size = (num_plts + 1) * sizeof(struct got_entry); in module_frob_arch_sections()
|
/Linux-v5.4/arch/s390/kernel/ |
D | module.c | 132 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections() 156 nrela = sechdrs[i].sh_size / sizeof(Elf_Rela); in module_frob_arch_sections() 430 n = sechdrs[relsec].sh_size / sizeof(Elf_Rela); in apply_relocate_add() 472 apply_alternatives(aseg, aseg + s->sh_size); in module_finalize() 476 nospec_revert(aseg, aseg + s->sh_size); in module_finalize() 480 nospec_revert(aseg, aseg + s->sh_size); in module_finalize()
|
/Linux-v5.4/tools/objtool/ |
D | elf.c | 182 if (sec->sh.sh_size != 0) { in read_sections() 189 sec->data->d_size != sec->sh.sh_size) { in read_sections() 195 sec->len = sec->sh.sh_size; in read_sections() 221 symbols_nr = symtab->sh.sh_size / symtab->sh.sh_entsize; in read_symbols() 370 for (i = 0; i < sec->sh.sh_size / sec->sh.sh_entsize; i++) { in read_relas() 522 sec->sh.sh_size = size; in elf_create_section() 612 sec->sh.sh_size = size; in elf_rebuild_rela_section()
|
/Linux-v5.4/arch/arm64/kernel/ |
D | module-plts.c | 292 int numrels = sechdrs[i].sh_size / sizeof(Elf64_Rela); in module_frob_arch_sections() 317 pltsec->sh_size = (core_plts + 1) * sizeof(struct plt_entry); in module_frob_arch_sections() 325 pltsec->sh_size = (init_plts + 1) * sizeof(struct plt_entry); in module_frob_arch_sections() 333 tramp->sh_size = sizeof(struct plt_entry); in module_frob_arch_sections()
|
/Linux-v5.4/drivers/remoteproc/ |
D | remoteproc_elf_loader.c | 217 u32 size = shdr->sh_size; 287 tablesz = shdr->sh_size; 327 return rproc_da_to_va(rproc, shdr->sh_addr, shdr->sh_size);
|
/Linux-v5.4/arch/mips/kernel/ |
D | vpe.c | 174 *size = ret + sechdr->sh_size; in get_offset() 438 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocations() 485 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in simplify_symbols() 540 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in dump_elfsymbols() 555 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in find_vpe_symbols() 622 (len < sechdrs[i].sh_offset + sechdrs[i].sh_size)) { in vpe_elfload() 661 sechdrs[i].sh_size); in vpe_elfload()
|
/Linux-v5.4/arch/arc/kernel/ |
D | module.c | 64 n = sechdrs[relsec].sh_size / sizeof(*rel_entry); in apply_relocate_add() 141 sechdrs[unwsec].sh_size); in module_finalize()
|
/Linux-v5.4/arch/m68k/kernel/ |
D | module.c | 35 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate() 75 for (i = 0; i < sechdrs[relsec].sh_size / sizeof(*rel); i++) { in apply_relocate_add()
|