| /linux/scripts/ |
| H A D | recordmcount.h | 41 #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 …]
|
| H A D | elf-parse.h | 18 } Elf_Shdr; typedef 36 uint64_t (*shdr_addr)(Elf_Shdr *shdr); 37 uint64_t (*shdr_offset)(Elf_Shdr *shdr); 38 uint64_t (*shdr_size)(Elf_Shdr *shdr); 39 uint64_t (*shdr_entsize)(Elf_Shdr *shdr); 40 uint32_t (*shdr_link)(Elf_Shdr *shdr); 41 uint32_t (*shdr_name)(Elf_Shdr *shdr); 42 uint32_t (*shdr_type)(Elf_Shdr *shdr); 96 static inline uint32_t shdr64_##fn_name(Elf_Shdr *shdr) \ in EHDR_HALF() 101 static inline uint32_t shdr32_##fn_name(Elf_Shdr *shdr) \ [all …]
|
| H A D | insert-sys-cert.c | 40 #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 …]
|
| H A D | tracepoint-update.c | 17 static Elf_Shdr *check_data_sec; 18 static Elf_Shdr *tracepoint_data_sec; 157 Elf_Shdr *shdr_start; in process_tracepoints() 158 Elf_Shdr *string_sec; in process_tracepoints() 166 shdr_start = (Elf_Shdr *)((char *)ehdr + ehdr_shoff(ehdr)); in process_tracepoints() 180 Elf_Shdr *shdr = get_index(shdr_start, shentsize, i); in process_tracepoints()
|
| H A D | sorttable.c | 354 Elf_Shdr *init_data_sec; 362 Elf_Shdr *shdr_start; in fill_relocs() 369 shdr_start = (Elf_Shdr *)((char *)ehdr + ehdr_shoff(ehdr)); in fill_relocs() 377 Elf_Shdr *shdr = get_index(shdr_start, shentsize, i); in fill_relocs() 419 Elf_Shdr *shdr_start; in replace_relocs() 424 shdr_start = (Elf_Shdr *)((char *)ehdr + ehdr_shoff(ehdr)); in replace_relocs() 432 Elf_Shdr *shdr = get_index(shdr_start, shentsize, i); in replace_relocs() 553 static void get_mcount_loc(struct elf_mcount_loc *emloc, Elf_Shdr *symtab_sec, in get_mcount_loc() 595 Elf_Shdr *shdr_start; in do_sort() 596 Elf_Shdr *strtab_sec = NULL; in do_sort() [all …]
|
| /linux/arch/loongarch/include/asm/ |
| H A D | module.h | 52 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val); 53 Elf_Addr module_emit_plt_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val); 86 static inline int get_plt_idx(unsigned long val, Elf_Shdr *sechdrs, const struct mod_section *sec) in get_plt_idx() 100 Elf_Shdr *sechdrs, in get_plt_entry() 114 Elf_Shdr *sechdrs, in get_got_entry()
|
| /linux/arch/powerpc/kernel/ |
| H A D | module.c | 19 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/include/linux/ |
| H A D | kexec.h | 126 Elf_Shdr *sechdrs; 288 arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section, in arch_kexec_apply_relocations_add() 289 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add() 307 arch_kexec_apply_relocations(struct purgatory_info *pi, Elf_Shdr *section, in arch_kexec_apply_relocations() 308 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations()
|
| H A D | cfi.h | 73 void module_cfi_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, 77 const Elf_Shdr *sechdrs, in module_cfi_finalize()
|
| /linux/arch/riscv/include/asm/ |
| H A D | module.h | 16 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()
|
| H A D | kexec.h | 63 Elf_Shdr *section, 64 const Elf_Shdr *relsec, 65 const Elf_Shdr *symtab);
|
| /linux/arch/s390/include/asm/ |
| H A D | module.h | 41 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()
|
| /linux/arch/arm64/include/asm/ |
| H A D | module.h | 54 static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr, in find_section() 55 const Elf_Shdr *sechdrs, in find_section() 58 const Elf_Shdr *s, *se; in find_section()
|
| /linux/arch/loongarch/kernel/ |
| H A D | module-sections.c | 13 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_got_entry() 39 Elf_Addr module_emit_plt_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_plt_entry() 105 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() 109 Elf_Shdr *got_sec, *plt_sec, *plt_idx_sec, *tramp = NULL; in module_frob_arch_sections() 142 Elf_Shdr *dst_sec = sechdrs + sechdrs[i].sh_info; in module_frob_arch_sections()
|
| H A D | module.c | 123 Elf_Shdr *sechdrs, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_plt_pcrel() 299 Elf_Shdr *sechdrs, u32 *location, Elf_Addr v, in apply_r_larch_b26() 394 Elf_Shdr *sechdrs, u32 *location, Elf_Addr v, in apply_r_larch_got_pc() 473 int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab, in apply_relocate_add() 590 const Elf_Shdr *sechdrs, struct module *mod) in module_init_ftrace_plt() 607 const Elf_Shdr *sechdrs, struct module *mod) in module_finalize() 610 const Elf_Shdr *s, *alt = NULL, *orc = NULL, *orc_ip = NULL, *ftrace = NULL; in module_finalize()
|
| /linux/arch/arm/kernel/ |
| H A D | module.c | 398 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/kernel/module/ |
| H A D | kallsyms.c | 40 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;
|
| H A D | internal.h | 70 Elf_Shdr *sechdrs; 128 Elf_Shdr *sechdr, unsigned int section); 335 int module_enforce_rwx_sections(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, 338 void module_mark_ro_after_init(const Elf_Ehdr *hdr, Elf_Shdr *sechdrs, 362 static inline bool sect_empty(const Elf_Shdr *sect) in sect_empty()
|
| /linux/arch/powerpc/include/asm/ |
| H A D | module.h | 83 int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs); 85 static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs) in module_finalize_ftrace()
|
| /linux/include/asm-generic/ |
| H A D | module.h | 16 #define Elf_Shdr Elf64_Shdr macro 29 #define Elf_Shdr Elf32_Shdr macro
|
| /linux/arch/parisc/kernel/ |
| H A D | module.c | 268 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/arch/mips/kernel/ |
| H A D | module.c | 303 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()
|
| H A D | vpe.c | 170 static long get_offset(unsigned long *size, Elf_Shdr *sechdr) in get_offset() 184 Elf_Shdr *sechdrs, const char *secstrings) in layout_sections() 202 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/kernel/ |
| H A D | kexec_file.c | 895 const Elf_Shdr *sechdrs; in kexec_purgatory_setup_kbuf() 952 const Elf_Shdr *sechdrs; 1016 Elf_Shdr *sechdrs; in kexec_purgatory_setup_sechdrs() 1027 sechdrs_size = array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum); 1104 const Elf_Shdr *sechdrs; in kexec_load_purgatory() 1109 const Elf_Shdr *relsec; in kexec_load_purgatory() 1110 const Elf_Shdr *symtab; in kexec_load_purgatory() 1111 Elf_Shdr *section; in kexec_load_purgatory() 1207 Elf_Shdr *sechdr; 1231 Elf_Shdr *se in kexec_purgatory_get_set_symbol() [all...] |
| /linux/arch/mips/include/asm/ |
| H A D | module.h | 39 #define Elf_Shdr Elf32_Shdr macro 57 #define Elf_Shdr Elf64_Shdr macro
|