Home
last modified time | relevance | path

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

123

/Linux-v4.19/scripts/
Drecordmcount.h37 #undef Elf_Shdr
71 # define Elf_Shdr Elf64_Shdr macro
104 # define Elf_Shdr Elf32_Shdr macro
179 Elf_Shdr *const shstr, in append_func()
188 Elf_Shdr mcsec; in append_func()
212 t += sizeof(Elf_Shdr) * old_shnum; in append_func()
214 sizeof(Elf_Shdr) * old_shnum); in append_func()
276 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr, in get_sym_str_and_relp()
282 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp()
285 Elf_Shdr const *const symsec = &shdr0[symsec_sh_link]; in get_sym_str_and_relp()
[all …]
Dsortextable.h20 #undef Elf_Shdr
42 # define Elf_Shdr Elf64_Shdr macro
63 # define Elf_Shdr Elf32_Shdr macro
95 Elf_Shdr *shdr; in do_func()
96 Elf_Shdr *shstrtab_sec; in do_func()
97 Elf_Shdr *strtab_sec = NULL; in do_func()
98 Elf_Shdr *symtab_sec = NULL; in do_func()
99 Elf_Shdr *extab_sec = NULL; in do_func()
104 Elf_Shdr *sort_needed_sec; in do_func()
117 shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_func()
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-v4.19/include/linux/
Dmoduleloader.h18 Elf_Shdr *sechdrs,
37 int apply_relocate(Elf_Shdr *sechdrs,
43 static inline int apply_relocate(Elf_Shdr *sechdrs, in apply_relocate()
60 int apply_relocate_add(Elf_Shdr *sechdrs,
66 static inline int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
80 const Elf_Shdr *sechdrs,
Dkexec.h111 Elf_Shdr *sechdrs;
178 Elf_Shdr *section,
179 const Elf_Shdr *relsec,
180 const Elf_Shdr *symtab);
182 Elf_Shdr *section,
183 const Elf_Shdr *relsec,
184 const Elf_Shdr *symtab);
/Linux-v4.19/arch/powerpc/kernel/
Dmodule.c32 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section()
33 const Elf_Shdr *sechdrs, in find_section()
47 const Elf_Shdr *sechdrs, struct module *me) in module_finalize()
49 const Elf_Shdr *sect; in module_finalize()
/Linux-v4.19/arch/arm/kernel/
Dmodule.c319 const Elf_Shdr *unw_sec;
320 const Elf_Shdr *txt_sec;
323 static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr, in find_mod_section()
324 const Elf_Shdr *sechdrs, const char *name) in find_mod_section()
326 const Elf_Shdr *s, *se; in find_mod_section()
339 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize()
342 const Elf_Shdr *s = NULL; in module_finalize()
345 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; in module_finalize()
/Linux-v4.19/arch/sparc/kernel/
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-v4.19/kernel/
Dkexec_file.c123 arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section, in arch_kexec_apply_relocations_add()
124 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add()
140 arch_kexec_apply_relocations(struct purgatory_info *pi, Elf_Shdr *section, in arch_kexec_apply_relocations()
141 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations()
726 const Elf_Shdr *sechdrs; in kexec_purgatory_setup_kbuf()
789 Elf_Shdr *sechdrs; in kexec_purgatory_setup_sechdrs()
796 sechdrs = vzalloc(array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum)); in kexec_purgatory_setup_sechdrs()
800 pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in kexec_purgatory_setup_sechdrs()
847 const Elf_Shdr *sechdrs; in kexec_apply_relocations()
852 const Elf_Shdr *relsec; in kexec_apply_relocations()
[all …]
Dmodule-internal.h21 Elf_Shdr *sechdrs;
/Linux-v4.19/arch/x86/um/asm/
Dmodule.h12 #define Elf_Shdr Elf32_Shdr macro
18 #define Elf_Shdr Elf64_Shdr macro
/Linux-v4.19/arch/powerpc/include/asm/
Dmodule.h102 int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs);
104 static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs) in module_finalize_ftrace()
/Linux-v4.19/include/asm-generic/
Dmodule.h16 #define Elf_Shdr Elf64_Shdr macro
33 #define Elf_Shdr Elf32_Shdr macro
/Linux-v4.19/scripts/mod/
Dmodpost.h24 #define Elf_Shdr Elf32_Shdr macro
39 #define Elf_Shdr Elf64_Shdr macro
129 Elf_Shdr *sechdrs;
/Linux-v4.19/tools/perf/util/
Dgenelf.h46 #define Elf_Shdr Elf64_Shdr macro
55 #define Elf_Shdr Elf32_Shdr macro
/Linux-v4.19/arch/mips/kernel/
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()
Dmodule.c319 static int __apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate()
404 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate()
412 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
443 const Elf_Shdr *sechdrs, in module_finalize()
446 const Elf_Shdr *s; in module_finalize()
/Linux-v4.19/arch/s390/kernel/
Dmachine_kexec_file.c148 Elf_Shdr *section, in arch_kexec_apply_relocations_add()
149 const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add()
150 const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add()
Dmodule.c102 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
105 Elf_Shdr *symtab; in module_frob_arch_sections()
408 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
434 const Elf_Shdr *sechdrs, in module_finalize()
437 const Elf_Shdr *s; in module_finalize()
/Linux-v4.19/arch/hexagon/kernel/
Dmodule.c40 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
80 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
/Linux-v4.19/arch/arc/kernel/
Dmodule.c29 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
135 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize()
/Linux-v4.19/arch/mips/include/asm/
Dmodule.h39 #define Elf_Shdr Elf32_Shdr macro
57 #define Elf_Shdr Elf64_Shdr macro
/Linux-v4.19/arch/parisc/kernel/
Dmodule.c320 CONST Elf_Shdr *sechdrs, in module_frob_arch_sections()
539 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
684 int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
849 const Elf_Shdr *sechdrs) in register_unwind_table()
874 const Elf_Shdr *sechdrs, in module_finalize()
881 Elf_Shdr *symhdr = NULL; in module_finalize()
909 symhdr = (Elf_Shdr *)&sechdrs[i]; in module_finalize()
/Linux-v4.19/arch/arm64/kernel/
Dmodule-plts.c113 Elf64_Word dstidx, Elf_Shdr *dstsec) in count_plts()
199 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
205 Elf_Shdr *tramp = NULL; in module_frob_arch_sections()
/Linux-v4.19/arch/x86/kernel/
Dmachine_kexec_64.c397 Elf_Shdr *section, const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add()
398 const Elf_Shdr *symtabsec) in arch_kexec_apply_relocations_add()
406 const Elf_Shdr *sechdrs; in arch_kexec_apply_relocations_add()

123