Home
last modified time | relevance | path

Searched refs:Elf_Shdr (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.15/scripts/
H A Drecordmcount.h41 #undef Elf_Shdr
80 # define Elf_Shdr Elf64_Shdr macro
118 # define Elf_Shdr Elf32_Shdr macro
240 Elf_Shdr const *relhdr; in find_symtab()
259 Elf_Shdr *const shstr, in append_func()
268 Elf_Shdr mcsec; in append_func()
275 Elf_Shdr *const shdr0 = (Elf_Shdr *)(old_shoff + (void *)ehdr); in append_func()
378 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp()
455 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in nop_mcount()
609 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in do_func()
[all …]
H A Dsorttable.c76 } Elf_Shdr; typedef
101 uint64_t (*shdr_addr)(Elf_Shdr *shdr);
687 Elf_Shdr *init_data_sec;
695 Elf_Shdr *shdr_start; in fill_relocs()
752 Elf_Shdr *shdr_start; in replace_relocs()
928 Elf_Shdr *shdr_start; in do_sort()
929 Elf_Shdr *strtab_sec = NULL; in do_sort()
930 Elf_Shdr *symtab_sec = NULL; in do_sort()
931 Elf_Shdr *extab_sec = NULL; in do_sort()
932 Elf_Shdr *string_sec; in do_sort()
[all …]
H A Dinsert-sys-cert.c40 #define Elf_Shdr Elf32_Shdr macro
45 #define Elf_Shdr Elf64_Shdr macro
70 Elf_Shdr *x; in get_offset_from_address()
133 static Elf_Sym *find_elf_symbol(Elf_Ehdr *hdr, Elf_Shdr *symtab, char *name) in find_elf_symbol()
138 Elf_Shdr *x; in find_elf_symbol()
157 static void get_symbol_from_table(Elf_Ehdr *hdr, Elf_Shdr *symtab, in get_symbol_from_table()
160 Elf_Shdr *sec; in get_symbol_from_table()
163 Elf_Shdr *x; in get_symbol_from_table()
184 static Elf_Shdr *get_symbol_table(Elf_Ehdr *hdr) in get_symbol_table()
186 Elf_Shdr *x; in get_symbol_table()
[all …]
/linux-6.15/include/linux/
H A Dmoduleloader.h21 Elf_Shdr *sechdrs,
48 int apply_relocate(Elf_Shdr *sechdrs,
54 static inline int apply_relocate(Elf_Shdr *sechdrs, in apply_relocate()
71 int apply_relocate_add(Elf_Shdr *sechdrs,
87 void clear_relocate_add(Elf_Shdr *sechdrs,
94 static inline int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
108 const Elf_Shdr *sechdrs,
H A Dkexec.h116 Elf_Shdr *sechdrs;
250 arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section, in arch_kexec_apply_relocations_add()
251 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add()
269 arch_kexec_apply_relocations(struct purgatory_info *pi, Elf_Shdr *section, in arch_kexec_apply_relocations()
270 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations()
H A Dcfi.h42 void module_cfi_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
46 const Elf_Shdr *sechdrs, in module_cfi_finalize()
/linux-6.15/arch/loongarch/include/asm/
H A Dmodule.h50 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()
/linux-6.15/arch/powerpc/kernel/
H A Dmodule.c19 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()
/linux-6.15/arch/s390/include/asm/
H A Dmodule.h41 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()
H A Dkexec.h105 Elf_Shdr *section,
106 const Elf_Shdr *relsec,
107 const Elf_Shdr *symtab);
/linux-6.15/arch/riscv/include/asm/
H A Dkexec.h62 Elf_Shdr *section,
63 const Elf_Shdr *relsec,
64 const Elf_Shdr *symtab);
H A Dmodule.h16 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()
/linux-6.15/arch/sparc/kernel/
H A Dmodule.c26 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()
/linux-6.15/arch/arm64/include/asm/
H A Dmodule.h53 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()
/linux-6.15/arch/loongarch/kernel/
H A Dmodule-sections.c12 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_got_entry()
38 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()
H A Dmodule.c106 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()
/linux-6.15/arch/arm/kernel/
H A Dmodule.c398 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()
/linux-6.15/arch/powerpc/include/asm/
H A Dmodule.h82 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()
/linux-6.15/include/asm-generic/
H A Dmodule.h16 #define Elf_Shdr Elf64_Shdr macro
29 #define Elf_Shdr Elf32_Shdr macro
/linux-6.15/arch/x86/include/asm/
H A Dkexec.h197 Elf_Shdr *section,
198 const Elf_Shdr *relsec,
199 const Elf_Shdr *symtab);
/linux-6.15/kernel/module/
H A Dkallsyms.c40 const Elf_Shdr *sechdrs = info->sechdrs; in elf_type()
78 static bool is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs, in is_core_symbol()
81 const Elf_Shdr *sec; in is_core_symbol()
115 Elf_Shdr *symsect = info->sechdrs + info->index.sym; in layout_symtab()
116 Elf_Shdr *strsect = info->sechdrs + info->index.str; in layout_symtab()
176 Elf_Shdr *symsec = &info->sechdrs[info->index.sym]; in add_kallsyms()
227 const Elf_Shdr *sechdr; in init_build_id()
/linux-6.15/arch/mips/kernel/
H A Dmodule.c303 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()
/linux-6.15/arch/parisc/kernel/
H A Dmodule.c268 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()
/linux-6.15/scripts/mod/
H A Dmodpost.h28 #define Elf_Shdr Elf32_Shdr macro
42 #define Elf_Shdr Elf64_Shdr macro
141 Elf_Shdr *sechdrs;
/linux-6.15/arch/mips/include/asm/
H A Dmodule.h39 #define Elf_Shdr Elf32_Shdr macro
57 #define Elf_Shdr Elf64_Shdr macro

123