| /arch/loongarch/include/asm/ |
| A D | module.h | 50 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val); 51 Elf_Addr module_emit_plt_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val); 75 static inline int get_plt_idx(unsigned long val, Elf_Shdr *sechdrs, const struct mod_section *sec) in get_plt_idx() 89 Elf_Shdr *sechdrs, in get_plt_entry() 103 Elf_Shdr *sechdrs, in get_got_entry()
|
| /arch/s390/include/asm/ |
| A D | module.h | 41 static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section() 42 const Elf_Shdr *sechdrs, in find_section() 46 const Elf_Shdr *s, *se; in find_section()
|
| A D | kexec.h | 105 Elf_Shdr *section, 106 const Elf_Shdr *relsec, 107 const Elf_Shdr *symtab);
|
| /arch/powerpc/kernel/ |
| A D | module.c | 19 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section() 20 const Elf_Shdr *sechdrs, in find_section() 34 const Elf_Shdr *sechdrs, struct module *me) in module_finalize() 36 const Elf_Shdr *sect; in module_finalize()
|
| /arch/riscv/include/asm/ |
| A D | kexec.h | 63 Elf_Shdr *section, 64 const Elf_Shdr *relsec, 65 const Elf_Shdr *symtab);
|
| A D | module.h | 16 Elf_Shdr *shdr; 115 static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section() 116 const Elf_Shdr *sechdrs, in find_section() 119 const Elf_Shdr *s, *se; in find_section()
|
| /arch/arm64/include/asm/ |
| A D | module.h | 53 static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section() 54 const Elf_Shdr *sechdrs, in find_section() 57 const Elf_Shdr *s, *se; in find_section()
|
| /arch/sparc/kernel/ |
| A D | module.c | 26 Elf_Shdr *sechdrs, in module_frob_arch_sections() 53 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add() 155 const Elf_Shdr *sechdrs) in do_patch_sections() 157 const Elf_Shdr *s, *sun4v_1insn = NULL, *sun4v_2insn = NULL; in do_patch_sections() 178 const Elf_Shdr *sechdrs, in module_finalize()
|
| /arch/powerpc/include/asm/ |
| A D | module.h | 82 int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs); 84 static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs) in module_finalize_ftrace()
|
| /arch/loongarch/kernel/ |
| A D | module-sections.c | 13 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_got_entry() 39 Elf_Addr module_emit_plt_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_plt_entry() 104 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() 108 Elf_Shdr *got_sec, *plt_sec, *plt_idx_sec, *tramp = NULL; in module_frob_arch_sections() 141 Elf_Shdr *dst_sec = sechdrs + sechdrs[i].sh_info; in module_frob_arch_sections()
|
| A D | module.c | 106 Elf_Shdr *sechdrs, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_plt_pcrel() 280 Elf_Shdr *sechdrs, u32 *location, Elf_Addr v, in apply_r_larch_b26() 348 Elf_Shdr *sechdrs, u32 *location, Elf_Addr v, in apply_r_larch_got_pc() 422 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() 494 const Elf_Shdr *sechdrs, struct module *mod) in module_init_ftrace_plt() 511 const Elf_Shdr *sechdrs, struct module *mod) in module_finalize() 514 const Elf_Shdr *s, *alt = NULL, *orc = NULL, *orc_ip = NULL, *ftrace = NULL; in module_finalize()
|
| /arch/arm/kernel/ |
| A D | module.c | 398 static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr, in find_mod_section() 399 const Elf_Shdr *sechdrs, const char *name) in find_mod_section() 401 const Elf_Shdr *s, *se; in find_mod_section() 414 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize() 417 const Elf_Shdr *s = NULL; in module_finalize() 420 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; in module_finalize() 429 const Elf_Shdr *txt_sec; in module_finalize()
|
| /arch/x86/include/asm/ |
| A D | kexec.h | 204 Elf_Shdr *section, 205 const Elf_Shdr *relsec, 206 const Elf_Shdr *symtab);
|
| /arch/mips/include/asm/ |
| A D | module.h | 39 #define Elf_Shdr Elf32_Shdr macro 57 #define Elf_Shdr Elf64_Shdr macro
|
| /arch/mips/kernel/ |
| A D | module.c | 303 static int __apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate() 376 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate() 384 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() 415 const Elf_Shdr *sechdrs, in module_finalize() 418 const Elf_Shdr *s; in module_finalize()
|
| A D | vpe.c | 170 static long get_offset(unsigned long *size, Elf_Shdr *sechdr) in get_offset() 184 Elf_Shdr *sechdrs, const char *secstrings) in layout_sections() 202 Elf_Shdr *s = &sechdrs[i]; in layout_sections() 477 static void simplify_symbols(Elf_Shdr *sechdrs, in simplify_symbols() 536 static void dump_elfsymbols(Elf_Shdr *sechdrs, unsigned int symindex, in dump_elfsymbols() 550 static int find_vpe_symbols(struct vpe *v, Elf_Shdr *sechdrs, in find_vpe_symbols() 579 Elf_Shdr *sechdrs; in vpe_elfload() 605 if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr)) { in vpe_elfload()
|
| /arch/parisc/kernel/ |
| A D | module.c | 268 CONST Elf_Shdr *sechdrs, in module_frob_arch_sections() 489 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add() 634 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add() 803 const Elf_Shdr *sechdrs) in register_unwind_table() 828 const Elf_Shdr *sechdrs, in module_finalize() 834 const Elf_Shdr *s; in module_finalize() 838 Elf_Shdr *symhdr = NULL; in module_finalize() 867 symhdr = (Elf_Shdr *)&sechdrs[i]; in module_finalize() 928 err = apply_relocate((Elf_Shdr *)sechdrs, in module_finalize() 932 err = apply_relocate_add((Elf_Shdr *)sechdrs, in module_finalize()
|
| /arch/s390/kernel/ |
| A D | module.c | 106 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() 109 Elf_Shdr *symtab; in module_frob_arch_sections() 427 static int __apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate_add() 453 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() 469 const Elf_Shdr *s) in module_alloc_ftrace_hotpatch_trampolines() 492 const Elf_Shdr *sechdrs, in module_finalize() 495 const Elf_Shdr *s; in module_finalize()
|
| A D | machine_kexec_file.c | 310 Elf_Shdr *section, in arch_kexec_apply_relocations_add() 311 const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() 312 const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add() 315 const Elf_Shdr *sechdrs; in arch_kexec_apply_relocations_add()
|
| /arch/hexagon/kernel/ |
| A D | module.c | 27 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() 67 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
|
| /arch/arc/kernel/ |
| A D | module.c | 26 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() 132 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize()
|
| /arch/s390/tools/ |
| A D | relocs.c | 38 #define Elf_Shdr ElfW(Shdr) macro 55 Elf_Shdr shdr; 159 if (ehdr.e_shentsize != sizeof(Elf_Shdr)) in read_ehdr() 163 Elf_Shdr shdr; in read_ehdr() 184 Elf_Shdr shdr; in read_shdrs()
|
| /arch/riscv/kernel/ |
| A D | machine_kexec_file.c | 146 Elf_Shdr *section, in arch_kexec_apply_relocations_add() 147 const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add() 148 const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add() 151 const Elf_Shdr *sechdrs; in arch_kexec_apply_relocations_add()
|
| A D | alternative.c | 175 const Elf_Shdr *shdr; in apply_vdso_alternatives() 176 const Elf_Shdr *alt; in apply_vdso_alternatives()
|
| /arch/arm64/kernel/ |
| A D | module.c | 453 const Elf_Shdr *sechdrs, in module_init_ftrace_plt() 457 const Elf_Shdr *s; in module_init_ftrace_plt() 474 const Elf_Shdr *sechdrs, in module_finalize() 477 const Elf_Shdr *s; in module_finalize()
|