Home
last modified time | relevance | path

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

123

/Linux-v5.4/scripts/
Drecordmcount.h36 #undef Elf_Shdr
70 # define Elf_Shdr Elf64_Shdr macro
103 # define Elf_Shdr Elf32_Shdr macro
178 Elf_Shdr *const shstr, in append_func()
187 Elf_Shdr mcsec; in append_func()
215 t += sizeof(Elf_Shdr) * old_shnum; in append_func()
217 sizeof(Elf_Shdr) * old_shnum) < 0) in append_func()
288 static void get_sym_str_and_relp(Elf_Shdr const *const relhdr, in get_sym_str_and_relp()
294 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp()
297 Elf_Shdr const *const symsec = &shdr0[symsec_sh_link]; in get_sym_str_and_relp()
[all …]
Dsortextable.h18 #undef Elf_Shdr
40 # define Elf_Shdr Elf64_Shdr macro
61 # define Elf_Shdr Elf32_Shdr macro
93 Elf_Shdr *shdr; in do_func()
94 Elf_Shdr *shstrtab_sec; in do_func()
95 Elf_Shdr *strtab_sec = NULL; in do_func()
96 Elf_Shdr *symtab_sec = NULL; in do_func()
97 Elf_Shdr *extab_sec = NULL; in do_func()
102 Elf_Shdr *sort_needed_sec; in do_func()
115 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-v5.4/include/linux/
Dmoduleloader.h18 Elf_Shdr *sechdrs,
42 int apply_relocate(Elf_Shdr *sechdrs,
48 static inline int apply_relocate(Elf_Shdr *sechdrs, in apply_relocate()
65 int apply_relocate_add(Elf_Shdr *sechdrs,
71 static inline int apply_relocate_add(Elf_Shdr *sechdrs, in apply_relocate_add()
85 const Elf_Shdr *sechdrs,
Dkexec.h111 Elf_Shdr *sechdrs;
190 Elf_Shdr *section,
191 const Elf_Shdr *relsec,
192 const Elf_Shdr *symtab);
194 Elf_Shdr *section,
195 const Elf_Shdr *relsec,
196 const Elf_Shdr *symtab);
/Linux-v5.4/arch/powerpc/kernel/
Dmodule.c20 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section()
21 const Elf_Shdr *sechdrs, in find_section()
35 const Elf_Shdr *sechdrs, struct module *me) in module_finalize()
37 const Elf_Shdr *sect; in module_finalize()
/Linux-v5.4/arch/arm/kernel/
Dmodule.c323 const Elf_Shdr *unw_sec;
324 const Elf_Shdr *txt_sec;
327 static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr, in find_mod_section()
328 const Elf_Shdr *sechdrs, const char *name) in find_mod_section()
330 const Elf_Shdr *s, *se; in find_mod_section()
343 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize()
346 const Elf_Shdr *s = NULL; in module_finalize()
349 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; in module_finalize()
/Linux-v5.4/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-v5.4/arch/x86/um/asm/
Dmodule.h12 #define Elf_Shdr Elf32_Shdr macro
18 #define Elf_Shdr Elf64_Shdr macro
/Linux-v5.4/kernel/
Dkexec_file.c120 arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section, in arch_kexec_apply_relocations_add()
121 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add()
137 arch_kexec_apply_relocations(struct purgatory_info *pi, Elf_Shdr *section, in arch_kexec_apply_relocations()
138 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations()
834 const Elf_Shdr *sechdrs; in kexec_purgatory_setup_kbuf()
897 Elf_Shdr *sechdrs; in kexec_purgatory_setup_sechdrs()
904 sechdrs = vzalloc(array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum)); in kexec_purgatory_setup_sechdrs()
908 pi->ehdr->e_shnum * sizeof(Elf_Shdr)); in kexec_purgatory_setup_sechdrs()
955 const Elf_Shdr *sechdrs; in kexec_apply_relocations()
960 const Elf_Shdr *relsec; in kexec_apply_relocations()
[all …]
Dmodule-internal.h17 Elf_Shdr *sechdrs;
/Linux-v5.4/arch/powerpc/include/asm/
Dmodule.h99 int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs);
101 static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs) in module_finalize_ftrace()
/Linux-v5.4/include/asm-generic/
Dmodule.h16 #define Elf_Shdr Elf64_Shdr macro
33 #define Elf_Shdr Elf32_Shdr macro
/Linux-v5.4/scripts/mod/
Dmodpost.h24 #define Elf_Shdr Elf32_Shdr macro
39 #define Elf_Shdr Elf64_Shdr macro
138 Elf_Shdr *sechdrs;
/Linux-v5.4/arch/parisc/kernel/
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()
955 err = apply_relocate((Elf_Shdr *)sechdrs, in module_finalize()
959 err = apply_relocate_add((Elf_Shdr *)sechdrs, in module_finalize()
/Linux-v5.4/tools/perf/util/
Dgenelf.h55 #define Elf_Shdr Elf64_Shdr macro
64 #define Elf_Shdr Elf32_Shdr macro
/Linux-v5.4/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.c307 static int __apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate()
392 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate()
400 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
431 const Elf_Shdr *sechdrs, in module_finalize()
434 const Elf_Shdr *s; in module_finalize()
/Linux-v5.4/arch/hexagon/kernel/
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-v5.4/arch/arc/kernel/
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()
/Linux-v5.4/arch/mips/include/asm/
Dmodule.h39 #define Elf_Shdr Elf32_Shdr macro
57 #define Elf_Shdr Elf64_Shdr macro
/Linux-v5.4/arch/s390/kernel/
Dmodule.c109 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
112 Elf_Shdr *symtab; in module_frob_arch_sections()
415 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
441 const Elf_Shdr *sechdrs, in module_finalize()
444 const Elf_Shdr *s; in module_finalize()
Dmachine_kexec_file.c266 Elf_Shdr *section, in arch_kexec_apply_relocations_add()
267 const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add()
268 const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add()
/Linux-v5.4/arch/arm64/kernel/
Dmodule-plts.c160 Elf64_Word dstidx, Elf_Shdr *dstsec) in count_plts()
255 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
261 Elf_Shdr *pltsec, *tramp = NULL; in module_frob_arch_sections()
/Linux-v5.4/arch/x86/kernel/
Dmachine_kexec_64.c495 Elf_Shdr *section, const Elf_Shdr *relsec, in arch_kexec_apply_relocations_add()
496 const Elf_Shdr *symtabsec) in arch_kexec_apply_relocations_add()
504 const Elf_Shdr *sechdrs; in arch_kexec_apply_relocations_add()

123