/linux/scripts/mod/ |
H A D | modpost.h | 29 #define Elf_Sym Elf32_Sym macro 43 #define Elf_Sym Elf64_Sym macro 105 Elf_Sym *symtab_start; 106 Elf_Sym *symtab_stop; 126 const Elf_Sym *sym) in get_secindex() 154 static inline bool is_valid_name(struct elf_info *elf, Elf_Sym *sym) in is_valid_name() 166 Elf_Sym *symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr, 172 Elf_Sym *sym, const char *symname); 183 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym);
|
H A D | symsearch.c | 54 for (Elf_Sym *sym = elf->symtab_start; sym < elf->symtab_stop; sym++) { in symbol_count() 74 for (Elf_Sym *sym = elf->symtab_start; sym < elf->symtab_stop; sym++) { in symsearch_populate() 153 Elf_Sym *symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr, in symsearch_find_nearest() 184 Elf_Sym *result = NULL; in symsearch_find_nearest()
|
H A D | modpost.c | 318 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) in sym_get_data() 404 Elf_Sym *sym; in parse_elf() 605 const Elf_Sym *sym, const char *symname) in handle_symbol() 693 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) in sym_name() 968 static Elf_Sym *find_fromsym(struct elf_info *elf, Elf_Addr addr, in find_fromsym() 974 static Elf_Sym *find_tosym(struct elf_info *elf, Elf_Addr addr, Elf_Sym *sym) in find_tosym() 976 Elf_Sym *new_sym; in find_tosym() 1001 Elf_Sym *tsym, in default_mismatch_handler() 1005 Elf_Sym *from; in default_mismatch_handler() 1059 Elf_Sym *sym) in check_export_symbol() [all …]
|
/linux/arch/x86/tools/ |
H A D | relocs.c | 12 #define Elf_Sym ElfW(Sym) macro 20 static int sym_index(Elf_Sym *sym); 42 Elf_Sym *symtab; 274 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() 287 static Elf_Sym *sym_lookup(const char *symname) in sym_lookup() 295 Elf_Sym *symtab; in sym_lookup() 296 Elf_Sym *sym; in sym_lookup() 301 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup() 354 static int sym_index(Elf_Sym *sym) in sym_index() 356 Elf_Sym *symtab = secs[shsymtabndx].symtab; in sym_index() [all …]
|
/linux/kernel/module/ |
H A D | kallsyms.c | 38 static char elf_type(const Elf_Sym *sym, const struct load_info *info) in elf_type() 78 static bool is_core_symbol(const Elf_Sym *src, const Elf_Shdr *sechdrs, in is_core_symbol() 117 const Elf_Sym *src; in layout_symtab() 143 info->stroffs = mod_mem_data->size = info->symoffs + ndst * sizeof(Elf_Sym); in layout_symtab() 173 const Elf_Sym *src; in add_kallsyms() 174 Elf_Sym *dst; in add_kallsyms() 188 rcu_dereference(mod->kallsyms)->num_symtab = symsec->sh_size / sizeof(Elf_Sym); in add_kallsyms() 281 const Elf_Sym *sym = &kallsyms->symtab[i]; in find_kallsyms_symbol() 396 const Elf_Sym *sym = &kallsyms->symtab[symnum]; in module_get_kallsym() 419 const Elf_Sym *sy in __find_kallsyms_symbol_value() [all...] |
/linux/arch/sparc/kernel/ |
H A D | module.c | 31 Elf_Sym *sym; in module_frob_arch_sections() 41 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections() 44 for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) { in module_frob_arch_sections() 61 Elf_Sym *sym; in apply_relocate_add() 79 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
|
/linux/scripts/ |
H A D | recordmcount.h | 44 #undef Elf_Sym 83 # define Elf_Sym Elf64_Sym macro 121 # define Elf_Sym Elf32_Sym macro 191 static unsigned int get_symindex(Elf_Sym const *sym, Elf32_Word const *symtab, in get_symindex() 350 static unsigned get_mcountsym(Elf_Sym const *const sym0, in get_mcountsym() 356 Elf_Sym const *const symp = in get_mcountsym() 374 Elf_Sym const **sym0, in get_sym_str_and_relp() 386 *sym0 = (Elf_Sym const *)(_w(symsec->sh_offset) in get_sym_str_and_relp() 411 Elf_Sym const *sym0; in sift_rel_mcount() 457 Elf_Sym const *sym0; in nop_mcount() [all …]
|
H A D | sorttable.h | 31 #undef Elf_Sym 56 # define Elf_Sym Elf64_Sym macro 80 # define Elf_Sym Elf32_Sym macro 270 Elf_Sym *sym; in do_sort() 271 const Elf_Sym *symtab; in do_sort() 273 Elf_Sym *sort_needed_sym = NULL; in do_sort() 413 symtab = (const Elf_Sym *)((const char *)ehdr + in do_sort() 430 sym < sym + _r(&symtab_sec->sh_size) / sizeof(Elf_Sym); in do_sort()
|
H A D | insert-sys-cert.c | 41 #define Elf_Sym Elf32_Sym macro 46 #define Elf_Sym Elf64_Sym macro 133 static Elf_Sym *find_elf_symbol(Elf_Ehdr *hdr, Elf_Shdr *symtab, char *name) in find_elf_symbol() 135 Elf_Sym *sym, *symtab_start; in find_elf_symbol() 162 Elf_Sym *elf_sym; in get_symbol_from_table()
|
/linux/arch/x86/um/asm/ |
H A D | module.h | 13 #define Elf_Sym Elf32_Sym macro 19 #define Elf_Sym Elf64_Sym macro
|
/linux/include/asm-generic/ |
H A D | module.h | 18 #define Elf_Sym Elf64_Sym macro 35 #define Elf_Sym Elf32_Sym macro
|
/linux/arch/mips/boot/tools/ |
H A D | relocs.c | 12 #define Elf_Sym ElfW(Sym) macro 27 Elf_Sym *symtab; 119 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() 341 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { in read_symtabs() 342 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() 468 Elf_Sym *sym, const char *symname)) in walk_relocs() 475 Elf_Sym *sh_symtab; in walk_relocs() 492 Elf_Sym *sym = &sh_symtab[ELF_R_SYM(rel->r_info)]; in walk_relocs() 500 static int do_reloc(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, in do_reloc()
|
/linux/arch/mips/include/asm/ |
H A D | module.h | 40 #define Elf_Sym Elf32_Sym macro 58 #define Elf_Sym Elf64_Sym macro
|
/linux/tools/perf/util/ |
H A D | genelf.h | 69 #define Elf_Sym Elf64_Sym 80 #define Elf_Sym Elf32_Sym 66 #define Elf_Sym global() macro 77 #define Elf_Sym global() macro
|
H A D | genelf.c | 77 static Elf_Sym symtab[]={ 413 shdr->sh_entsize = sizeof(Elf_Sym); in jit_write_elf()
|
/linux/arch/mips/kernel/ |
H A D | vpe.c | 482 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in simplify_symbols() 484 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in simplify_symbols() 538 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in dump_elfsymbols() 539 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in dump_elfsymbols() 553 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in find_vpe_symbols() 554 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in find_vpe_symbols()
|
H A D | module.c | 311 Elf_Sym *sym; in __apply_relocate() 329 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in __apply_relocate()
|
/linux/arch/s390/kernel/ |
H A D | module.c | 110 Elf_Sym *symbols; in module_frob_arch_sections() 130 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections() 222 static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab, in apply_rela() 433 Elf_Sym *symtab; in __apply_relocate_add() 441 symtab = (Elf_Sym *) sechdrs[symindex].sh_addr; in __apply_relocate_add()
|
/linux/arch/arm/include/asm/ |
H A D | module.h | 48 static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym) in kallsyms_symbol_value()
|
/linux/kernel/ |
H A D | kexec_file.c | 1077 static const Elf_Sym *kexec_purgatory_find_symbol(struct purgatory_info *pi, in kexec_purgatory_find_symbol() 1082 const Elf_Sym *syms; in kexec_purgatory_find_symbol() 1103 for (k = 0; k < sechdrs[i].sh_size/sizeof(Elf_Sym); k++) { in kexec_purgatory_find_symbol() 1128 const Elf_Sym *sym; in kexec_purgatory_get_symbol_addr() 1152 const Elf_Sym *sym; in kexec_purgatory_get_set_symbol()
|
/linux/arch/riscv/kernel/ |
H A D | module.c | 782 Elf_Sym *sym; in apply_relocate_add() 807 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 848 Elf_Sym *hi20_sym = in apply_relocate_add() 849 (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
|
/linux/arch/parisc/kernel/ |
H A D | module.c | 837 Elf_Sym *newptr, *oldptr; in module_finalize() 891 nsyms = symhdr->sh_size / sizeof(Elf_Sym); in module_finalize() 906 nsyms = newptr - (Elf_Sym *)symhdr->sh_addr; in module_finalize() 908 symhdr->sh_size = nsyms * sizeof(Elf_Sym); in module_finalize()
|
/linux/include/linux/ |
H A D | module.h | 385 Elf_Sym *symtab; 602 static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym) in kallsyms_symbol_value()
|
/linux/arch/loongarch/kernel/ |
H A D | module.c | 433 Elf_Sym *sym; in apply_relocate_add() 444 sym = (Elf_Sym *)sechdrs[symindex].sh_addr + ELF_R_SYM(rel[i].r_info); in apply_relocate_add()
|
/linux/kernel/livepatch/ |
H A D | core.c | 200 Elf_Sym *sym; in klp_resolve_symbols() 220 sym = (Elf_Sym *)sechdrs[symndx].sh_addr + ELF_R_SYM(relas[i].r_info); in klp_resolve_symbols()
|