Home
last modified time | relevance | path

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

123

/Linux-v6.1/arch/powerpc/kernel/
Dmodule.c50 (void *)sect->sh_addr, in module_finalize()
51 (void *)sect->sh_addr + sect->sh_size); in module_finalize()
56 (void *)sect->sh_addr, in module_finalize()
57 (void *)sect->sh_addr + sect->sh_size); in module_finalize()
63 (void *)sect->sh_addr, in module_finalize()
64 (void *)sect->sh_addr + sect->sh_size); in module_finalize()
70 me->arch.start_opd = sect->sh_addr; in module_finalize()
71 me->arch.end_opd = sect->sh_addr + sect->sh_size; in module_finalize()
79 (void *)sect->sh_addr, in module_finalize()
80 (void *)sect->sh_addr + sect->sh_size); in module_finalize()
[all …]
Dmodule_64.c192 (void *)sechdrs[i].sh_addr, in get_stubs_size()
200 sort((void *)sechdrs[i].sh_addr, in get_stubs_size()
204 relocs += count_relocs((void *)sechdrs[i].sh_addr, in get_stubs_size()
262 syms = (Elf64_Sym *)sechdrs[symindex].sh_addr; in find_dot_toc()
408 return (sechdrs[me->arch.toc_section].sh_addr & ~0xfful) + 0x8000; in my_r2()
475 stubs = (void *)sechdrs[me->arch.stubs_section].sh_addr; in stub_for_addr()
527 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
547 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
550 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
Dmodule_32.c168 entry = (void *)sechdrs[mod->arch.core_plt_section].sh_addr; in do_plt_call()
170 entry = (void *)sechdrs[mod->arch.init_plt_section].sh_addr; in do_plt_call()
204 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
213 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
217 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
/Linux-v6.1/arch/x86/kernel/
Dmodule.c97 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate()
105 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate()
109 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate()
139 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate_add()
148 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate_add()
153 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in __apply_relocate_add()
285 void *pseg = (void *)para->sh_addr; in module_finalize()
289 void *rseg = (void *)retpolines->sh_addr; in module_finalize()
293 void *rseg = (void *)returns->sh_addr; in module_finalize()
298 void *aseg = (void *)alt->sh_addr; in module_finalize()
[all …]
/Linux-v6.1/arch/m68k/kernel/
Dmodule.c29 Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate()
37 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate()
41 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate()
69 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
77 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
81 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
/Linux-v6.1/arch/sparc/kernel/
Dmodule.c71 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections()
72 strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr; in module_frob_arch_sections()
90 Elf_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
99 location = (u8 *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
109 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
198 void *p = (void *) sun4v_1insn->sh_addr; in do_patch_sections()
202 void *p = (void *) sun4v_2insn->sh_addr; in do_patch_sections()
/Linux-v6.1/arch/mips/kernel/
Dvpe.c431 Elf32_Rel *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocations()
442 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocations()
445 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocations()
483 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in simplify_symbols()
491 bssbase = sechdrs[i].sh_addr; in simplify_symbols()
524 secbase = sechdrs[sym[i].st_shndx].sh_addr; in simplify_symbols()
539 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in dump_elfsymbols()
554 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in find_vpe_symbols()
614 sechdrs[0].sh_addr = 0; in vpe_elfload()
630 sechdrs[i].sh_addr = (size_t) hdr + in vpe_elfload()
[all …]
Dmodule.c332 r.rel = (void *)sechdrs[relsec].sh_addr; in __apply_relocate()
337 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate()
340 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in __apply_relocate()
439 me->arch.dbe_start = (void *)s->sh_addr; in module_finalize()
440 me->arch.dbe_end = (void *)s->sh_addr + s->sh_size; in module_finalize()
/Linux-v6.1/arch/openrisc/kernel/
Dmodule.c23 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
32 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
37 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
/Linux-v6.1/arch/arc/kernel/
Dmodule.c52 Elf32_Rela *rel_entry = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
62 tgt_addr = sechdrs[tgtsec].sh_addr; in apply_relocate_add()
63 sym_sec = (Elf32_Sym *) sechdrs[symindex].sh_addr; in apply_relocate_add()
140 unw = unwind_add_table(mod, (void *)sechdrs[unwsec].sh_addr, in module_finalize()
/Linux-v6.1/arch/microblaze/kernel/
Dmodule.c23 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
33 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr + in apply_relocate_add()
35 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr + in apply_relocate_add()
/Linux-v6.1/arch/parisc/kernel/
Dmodule.c312 const Elf_Rela *rels = (void *)sechdrs[i].sh_addr; in module_frob_arch_sections()
525 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
540 loc = (void *)sechdrs[targetsec].sh_addr in apply_relocate_add()
543 loc0 = sechdrs[targetsec].sh_addr; in apply_relocate_add()
545 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
670 Elf64_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
684 loc = (void *)sechdrs[targetsec].sh_addr in apply_relocate_add()
687 loc0 = sechdrs[targetsec].sh_addr; in apply_relocate_add()
689 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
840 table = (unsigned char *)sechdrs[me->arch.unwind_section].sh_addr; in register_unwind_table()
[all …]
/Linux-v6.1/arch/riscv/include/asm/
Dmodule.h38 struct got_entry *got = (struct got_entry *)(sec->shdr->sh_addr); in get_got_entry()
91 struct got_entry *got_plt = (struct got_entry *)sec->shdr->sh_addr; in get_got_plt_idx()
104 struct plt_entry *plt = (struct plt_entry *)sec_plt->shdr->sh_addr; in get_plt_entry()
/Linux-v6.1/arch/sh/kernel/
Dmodule.c31 Elf32_Rela *rel = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
41 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
45 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
/Linux-v6.1/arch/csky/kernel/
Dmodule.c53 Elf32_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add()
60 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
62 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
/Linux-v6.1/arch/loongarch/include/asm/
Dmodule.h68 struct plt_idx_entry *plt_idx = (struct plt_idx_entry *)sec->shdr->sh_addr; in get_plt_idx()
83 struct plt_entry *plt = (struct plt_entry *)sec_plt->shdr->sh_addr; in get_plt_entry()
94 struct got_entry *got = (struct got_entry *)sec->shdr->sh_addr; in get_got_entry()
/Linux-v6.1/arch/nios2/kernel/
Dmodule.c48 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
57 = ((void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
62 = ((Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
/Linux-v6.1/arch/arm/kernel/
Dmodule.c116 Elf32_Rel *rel = (void *)relsec->sh_addr; in apply_relocate()
139 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate()
149 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate()
484 unwind_table_add(s->sh_addr, in module_finalize()
486 txt_sec->sh_addr, in module_finalize()
500 fixup_pv_table((void *)s->sh_addr, s->sh_size); in module_finalize()
505 fixup_smp((void *)s->sh_addr, s->sh_size); in module_finalize()
Dmodule-plts.c60 pltsec->plt_ent = (struct plt_entries *)pltsec->plt->sh_addr; in get_module_plt()
232 syms = (Elf32_Sym *)s->sh_addr; in module_frob_arch_sections()
260 core_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
263 init_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
/Linux-v6.1/arch/xtensa/kernel/
Dmodule.c54 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
63 location = (char *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
65 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
/Linux-v6.1/arch/hexagon/kernel/
Dmodule.c76 Elf32_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
78 Elf32_Sym *sym_base = (Elf32_Sym *) sechdrs[symindex].sh_addr; in apply_relocate_add()
79 void *loc_base = (void *) sechdrs[sym_info].sh_addr; in apply_relocate_add()
/Linux-v6.1/arch/ia64/kernel/
Dmodule.c517 got = (void *) mod->arch.got->sh_addr; in get_ltoff()
523 BUG_ON(e >= (struct got_entry *) (mod->arch.got->sh_addr + mod->arch.got->sh_size)); in get_ltoff()
548 plt = (void *) mod->arch.init_plt->sh_addr; in get_plt()
551 plt = (void *) mod->arch.core_plt->sh_addr; in get_plt()
587 struct fdesc *fdesc = (void *) mod->arch.opd->sh_addr; in get_fdesc()
608 if ((uint64_t) ++fdesc >= mod->arch.opd->sh_addr + mod->arch.opd->sh_size) in get_fdesc()
638 case RV_SECREL: val -= sec->sh_addr; break; in do_reloc()
793 Elf64_Rela *rela = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add()
830 ((Elf64_Sym *) sechdrs[symindex].sh_addr in apply_relocate_add()
833 (void *) target_sec->sh_addr + rela[i].r_offset); in apply_relocate_add()
[all …]
/Linux-v6.1/arch/riscv/kernel/
Dmodule.c328 Elf_Rela *rel = (void *) sechdrs[relsec].sh_addr; in apply_relocate_add()
341 location = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
344 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
375 sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
385 (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
455 apply_module_alternatives((void *)s->sh_addr, s->sh_size); in module_finalize()
/Linux-v6.1/arch/alpha/kernel/
Dmodule.c137 Elf64_Rela *rela = (void *)sechdrs[relsec].sh_addr; in apply_relocate_add()
146 base = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr; in apply_relocate_add()
147 symtab = (Elf64_Sym *)sechdrs[symindex].sh_addr; in apply_relocate_add()
152 got = sechdrs[me->arch.gotsecindex].sh_addr; in apply_relocate_add()
/Linux-v6.1/kernel/
Dcfi.c63 mod->kcfi_traps = (s32 *)sechdrs[i].sh_addr; in module_cfi_finalize()
64 mod->kcfi_traps_end = (s32 *)(sechdrs[i].sh_addr + sechdrs[i].sh_size); in module_cfi_finalize()

123