Home
last modified time | relevance | path

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

123

/linux/scripts/
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 …]
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 …]
A Dsorttable.h25 #undef Elf_Shdr
47 # define Elf_Shdr Elf64_Shdr macro
68 # define Elf_Shdr Elf32_Shdr macro
200 Elf_Shdr *s, *shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_sort()
201 Elf_Shdr *strtab_sec = NULL; in do_sort()
202 Elf_Shdr *symtab_sec = NULL; in do_sort()
203 Elf_Shdr *extab_sec = NULL; in do_sort()
208 Elf_Shdr *sort_needed_sec; in do_sort()
/linux/include/linux/
A Dmoduleloader.h18 Elf_Shdr *sechdrs,
47 int apply_relocate(Elf_Shdr *sechdrs,
53 static inline int apply_relocate(Elf_Shdr *sechdrs, in apply_relocate()
70 int apply_relocate_add(Elf_Shdr *sechdrs,
76 static inline int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
90 const Elf_Shdr *sechdrs,
A Dkexec.h111 Elf_Shdr *sechdrs;
191 Elf_Shdr *section,
192 const Elf_Shdr *relsec,
193 const Elf_Shdr *symtab);
195 Elf_Shdr *section,
196 const Elf_Shdr *relsec,
197 const Elf_Shdr *symtab);
A Dlivepatch.h234 int klp_apply_section_relocs(struct module *pmod, Elf_Shdr *sechdrs,
248 int klp_apply_section_relocs(struct module *pmod, Elf_Shdr *sechdrs, in klp_apply_section_relocs()
/linux/arch/powerpc/kernel/
A Dmodule.c22 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section()
23 const Elf_Shdr *sechdrs, in find_section()
37 const Elf_Shdr *sechdrs, struct module *me) in module_finalize()
39 const Elf_Shdr *sect; in module_finalize()
/linux/arch/arm/kernel/
A Dmodule.c345 const Elf_Shdr *unw_sec;
346 const Elf_Shdr *txt_sec;
349 static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr, in find_mod_section()
350 const Elf_Shdr *sechdrs, const char *name) in find_mod_section()
352 const Elf_Shdr *s, *se; in find_mod_section()
365 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize()
368 const Elf_Shdr *s = NULL; in module_finalize()
371 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; in module_finalize()
/linux/arch/sparc/kernel/
A Dmodule.c56 Elf_Shdr *sechdrs, in module_frob_arch_sections()
83 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
185 const Elf_Shdr *sechdrs) in do_patch_sections()
187 const Elf_Shdr *s, *sun4v_1insn = NULL, *sun4v_2insn = NULL; in do_patch_sections()
208 const Elf_Shdr *sechdrs, in module_finalize()
/linux/kernel/
A Dkexec_file.c122 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add()
139 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations()
846 const Elf_Shdr *sechdrs; in kexec_purgatory_setup_kbuf()
909 Elf_Shdr *sechdrs; in kexec_purgatory_setup_sechdrs()
967 const Elf_Shdr *sechdrs; in kexec_apply_relocations()
972 const Elf_Shdr *relsec; in kexec_apply_relocations()
973 const Elf_Shdr *symtab; in kexec_apply_relocations()
974 Elf_Shdr *section; in kexec_apply_relocations()
1076 const Elf_Shdr *sechdrs; in kexec_purgatory_find_symbol()
1125 Elf_Shdr *sechdr; in kexec_purgatory_get_symbol_addr()
[all …]
A Dmodule.c353 Elf_Shdr *shdr = &info->sechdrs[i]; in find_sec()
388 Elf_Shdr *shdr = &info->sechdrs[i]; in find_any_sec()
1245 Elf_Shdr *sechdrs = info->sechdrs; in check_version()
1559 Elf_Shdr *sec = &info->sechdrs[i]; in add_sect_attrs()
2447 Elf_Shdr *s = &info->sechdrs[i]; in layout_sections()
2480 Elf_Shdr *s = &info->sechdrs[i]; in layout_sections()
2668 const Elf_Shdr *sec; in is_core_symbol()
2806 const Elf_Shdr *sechdr; in init_build_id()
2971 Elf_Shdr *shdr, *strhdr; in elf_validity_check()
3533 Elf_Shdr *sechdrs, in module_frob_arch_sections()
[all …]
/linux/arch/arm64/kernel/
A Dmodule.c478 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section()
479 const Elf_Shdr *sechdrs, in find_section()
482 const Elf_Shdr *s, *se; in find_section()
499 const Elf_Shdr *sechdrs, in module_init_ftrace_plt()
503 const Elf_Shdr *s; in module_init_ftrace_plt()
523 const Elf_Shdr *sechdrs, in module_finalize()
526 const Elf_Shdr *s; in module_finalize()
/linux/arch/x86/um/asm/
A Dmodule.h12 #define Elf_Shdr Elf32_Shdr macro
18 #define Elf_Shdr Elf64_Shdr macro
/linux/arch/powerpc/include/asm/
A Dmodule.h78 int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs);
80 static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs) in module_finalize_ftrace()
/linux/arch/parisc/kernel/
A Dmodule.c299 CONST Elf_Shdr *sechdrs, in module_frob_arch_sections()
518 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
663 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
832 const Elf_Shdr *sechdrs) in register_unwind_table()
857 const Elf_Shdr *sechdrs, in module_finalize()
863 const Elf_Shdr *s; in module_finalize()
867 Elf_Shdr *symhdr = NULL; in module_finalize()
896 symhdr = (Elf_Shdr *)&sechdrs[i]; in module_finalize()
957 err = apply_relocate((Elf_Shdr *)sechdrs, in module_finalize()
961 err = apply_relocate_add((Elf_Shdr *)sechdrs, in module_finalize()
/linux/include/asm-generic/
A Dmodule.h16 #define Elf_Shdr Elf64_Shdr macro
33 #define Elf_Shdr Elf32_Shdr macro
/linux/arch/mips/kernel/
A Dmodule.c313 static int __apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate()
386 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate()
394 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
425 const Elf_Shdr *sechdrs, in module_finalize()
428 const Elf_Shdr *s; in module_finalize()
A Dvpe.c169 static long get_offset(unsigned long *size, Elf_Shdr *sechdr) in get_offset()
183 Elf_Shdr *sechdrs, const char *secstrings) in layout_sections()
201 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()
/linux/scripts/mod/
A Dmodpost.h24 #define Elf_Shdr Elf32_Shdr macro
39 #define Elf_Shdr Elf64_Shdr macro
138 Elf_Shdr *sechdrs;
/linux/arch/s390/kernel/
A Dmodule.c120 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
123 Elf_Shdr *symtab; in module_frob_arch_sections()
439 static int __apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate_add()
465 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
481 const Elf_Shdr *s) in module_alloc_ftrace_hotpatch_trampolines()
504 const Elf_Shdr *sechdrs, in module_finalize()
507 const Elf_Shdr *s; in module_finalize()
A Dmachine_kexec_file.c291 Elf_Shdr *section, in arch_kexec_apply_relocations_add()
292 const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add()
293 const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add()
296 const Elf_Shdr *sechdrs; in arch_kexec_apply_relocations_add()
/linux/arch/mips/include/asm/
A Dmodule.h39 #define Elf_Shdr Elf32_Shdr macro
57 #define Elf_Shdr Elf64_Shdr macro
/linux/tools/perf/util/
A Dgenelf.h55 #define Elf_Shdr Elf64_Shdr macro
64 #define Elf_Shdr Elf32_Shdr macro
/linux/arch/hexagon/kernel/
A Dmodule.c27 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()
/linux/arch/arc/kernel/
A Dmodule.c26 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()

Completed in 60 milliseconds

123