Home
last modified time | relevance | path

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

123

/Linux-v6.1/scripts/
Drecordmcount.h41 #undef Elf_Shdr
80 # define Elf_Shdr Elf64_Shdr macro
118 # define Elf_Shdr Elf32_Shdr macro
211 static unsigned int get_shnum(Elf_Ehdr const *ehdr, Elf_Shdr const *shdr0) in get_shnum()
219 static void set_shnum(Elf_Ehdr *ehdr, Elf_Shdr *shdr0, unsigned int new_shnum) in set_shnum()
228 static int get_shstrndx(Elf_Ehdr const *ehdr, Elf_Shdr const *shdr0) in get_shstrndx()
236 static void find_symtab(Elf_Ehdr *const ehdr, Elf_Shdr const *shdr0, in find_symtab()
240 Elf_Shdr const *relhdr; in find_symtab()
259 Elf_Shdr *const shstr, in append_func()
268 Elf_Shdr mcsec; in append_func()
[all …]
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 …]
Dsorttable.h28 #undef Elf_Shdr
53 # define Elf_Shdr Elf64_Shdr macro
77 # define Elf_Shdr Elf32_Shdr macro
206 Elf_Shdr *init_data_sec;
266 Elf_Shdr *s, *shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_sort()
267 Elf_Shdr *strtab_sec = NULL; in do_sort()
268 Elf_Shdr *symtab_sec = NULL; in do_sort()
269 Elf_Shdr *extab_sec = NULL; in do_sort()
274 Elf_Shdr *sort_needed_sec; in do_sort()
/Linux-v6.1/include/linux/
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,
Dkexec.h118 Elf_Shdr *sechdrs;
270 arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section, in arch_kexec_apply_relocations_add()
271 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add()
289 arch_kexec_apply_relocations(struct purgatory_info *pi, Elf_Shdr *section, in arch_kexec_apply_relocations()
290 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations()
Dcfi.h30 void module_cfi_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
34 const Elf_Shdr *sechdrs, in module_cfi_finalize()
/Linux-v6.1/arch/riscv/include/asm/
Dkexec.h61 Elf_Shdr *section,
62 const Elf_Shdr *relsec,
63 const Elf_Shdr *symtab);
/Linux-v6.1/arch/s390/include/asm/
Dkexec.h102 Elf_Shdr *section,
103 const Elf_Shdr *relsec,
104 const Elf_Shdr *symtab);
/Linux-v6.1/arch/powerpc/kernel/
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-v6.1/arch/arm64/include/asm/
Dmodule.h62 static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section()
63 const Elf_Shdr *sechdrs, in find_section()
66 const Elf_Shdr *s, *se; in find_section()
/Linux-v6.1/arch/arm/kernel/
Dmodule.c435 const Elf_Shdr *unw_sec;
436 const Elf_Shdr *txt_sec;
439 static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr, in find_mod_section()
440 const Elf_Shdr *sechdrs, const char *name) in find_mod_section()
442 const Elf_Shdr *s, *se; in find_mod_section()
455 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_finalize()
458 const Elf_Shdr *s = NULL; in module_finalize()
461 const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; in module_finalize()
470 const Elf_Shdr *txt_sec; in module_finalize()
/Linux-v6.1/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-v6.1/arch/x86/um/asm/
Dmodule.h12 #define Elf_Shdr Elf32_Shdr macro
18 #define Elf_Shdr Elf64_Shdr macro
/Linux-v6.1/arch/powerpc/include/asm/
Dmodule.h76 int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs);
78 static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs) in module_finalize_ftrace()
/Linux-v6.1/include/asm-generic/
Dmodule.h16 #define Elf_Shdr Elf64_Shdr macro
33 #define Elf_Shdr Elf32_Shdr macro
/Linux-v6.1/arch/x86/include/asm/
Dkexec.h198 Elf_Shdr *section,
199 const Elf_Shdr *relsec,
200 const Elf_Shdr *symtab);
/Linux-v6.1/scripts/mod/
Dmodpost.h26 #define Elf_Shdr Elf32_Shdr macro
40 #define Elf_Shdr Elf64_Shdr macro
137 Elf_Shdr *sechdrs;
/Linux-v6.1/kernel/module/
Dinternal.h63 Elf_Shdr *sechdrs;
104 long module_get_offset(struct module *mod, unsigned int *size, Elf_Shdr *sechdr,
225 int module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
251 static inline bool sect_empty(const Elf_Shdr *sect) in sect_empty()
Dkallsyms.c39 const Elf_Shdr *sechdrs = info->sechdrs; in elf_type()
77 static bool is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs, in is_core_symbol()
80 const Elf_Shdr *sec; in is_core_symbol()
112 Elf_Shdr *symsect = info->sechdrs + info->index.sym; in layout_symtab()
113 Elf_Shdr *strsect = info->sechdrs + info->index.str; in layout_symtab()
172 Elf_Shdr *symsec = &info->sechdrs[info->index.sym]; in add_kallsyms()
224 const Elf_Shdr *sechdr; in init_build_id()
/Linux-v6.1/arch/riscv/kernel/
Dmodule.c324 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
432 static const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section()
433 const Elf_Shdr *sechdrs, in find_section()
436 const Elf_Shdr *s, *se; in find_section()
448 const Elf_Shdr *sechdrs, in module_finalize()
451 const Elf_Shdr *s; in module_finalize()
/Linux-v6.1/arch/mips/kernel/
Dmodule.c314 static int __apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in __apply_relocate()
387 int apply_relocate(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate()
395 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add()
426 const Elf_Shdr *sechdrs, in module_finalize()
429 const Elf_Shdr *s; in module_finalize()
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-v6.1/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()
957 err = apply_relocate((Elf_Shdr *)sechdrs, in module_finalize()
961 err = apply_relocate_add((Elf_Shdr *)sechdrs, in module_finalize()
/Linux-v6.1/arch/mips/include/asm/
Dmodule.h39 #define Elf_Shdr Elf32_Shdr macro
57 #define Elf_Shdr Elf64_Shdr macro
/Linux-v6.1/arch/s390/kernel/
Dmodule.c121 int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_frob_arch_sections()
124 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()

123