Home
last modified time | relevance | path

Searched refs:Elf_Sym (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/linux/scripts/mod/
H A Dmodpost.h28 #define Elf_Sym Elf32_Sym macro
42 #define Elf_Sym Elf64_Sym macro
117 Elf_Sym *symtab_start;
118 Elf_Sym *symtab_stop;
138 const Elf_Sym *sym) in get_secindex()
166 static inline int is_valid_name(struct elf_info *elf, Elf_Sym *sym) in is_valid_name()
178 Elf_Sym *symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr,
184 Elf_Sym *sym, const char *symname);
193 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym);
H A Dsymsearch.c54 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 Dmodpost.c342 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) in sym_get_data()
428 Elf_Sym *sym; in parse_elf()
625 const Elf_Sym *sym, const char *symname) in handle_symbol()
713 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) in sym_name()
1020 static Elf_Sym *find_fromsym(struct elf_info *elf, Elf_Addr addr, in find_fromsym()
1026 static Elf_Sym *find_tosym(struct elf_info *elf, Elf_Addr addr, Elf_Sym *sym) in find_tosym()
1028 Elf_Sym *new_sym; in find_tosym()
1053 Elf_Sym *tsym, in default_mismatch_handler()
1057 Elf_Sym *from; in default_mismatch_handler()
1103 Elf_Sym *sym) in check_export_symbol()
[all …]
/openbmc/linux/arch/x86/tools/
H A Drelocs.c12 #define Elf_Sym ElfW(Sym) macro
20 static int sym_index(Elf_Sym *sym);
41 Elf_Sym *symtab;
271 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name()
284 static Elf_Sym *sym_lookup(const char *symname) in sym_lookup()
291 Elf_Sym *symtab; in sym_lookup()
292 Elf_Sym *sym; in sym_lookup()
297 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup()
349 static int sym_index(Elf_Sym *sym) in sym_index()
351 Elf_Sym *symtab = secs[shsymtabndx].symtab; in sym_index()
[all …]
/openbmc/linux/kernel/module/
H A Dkallsyms.c38 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()
397 const Elf_Sym *sym = &kallsyms->symtab[symnum]; in module_get_kallsym()
420 const Elf_Sym *sym = &kallsyms->symtab[i]; in __find_kallsyms_symbol_value()
[all …]
/openbmc/linux/scripts/
H A Drecordmcount.h44 #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 Dsorttable.h31 #undef Elf_Sym
56 # define Elf_Sym Elf64_Sym macro
80 # define Elf_Sym Elf32_Sym macro
273 Elf_Sym *sym; in do_sort()
274 const Elf_Sym *symtab; in do_sort()
276 Elf_Sym *sort_needed_sym = NULL; in do_sort()
416 symtab = (const Elf_Sym *)((const char *)ehdr + in do_sort()
433 sym < sym + _r(&symtab_sec->sh_size) / sizeof(Elf_Sym); in do_sort()
H A Dinsert-sys-cert.c41 #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()
/openbmc/linux/arch/sparc/kernel/
H A Dmodule.c61 Elf_Sym *sym; in module_frob_arch_sections()
71 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections()
74 for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) { in module_frob_arch_sections()
91 Elf_Sym *sym; in apply_relocate_add()
109 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
/openbmc/linux/arch/x86/um/asm/
H A Dmodule.h13 #define Elf_Sym Elf32_Sym macro
19 #define Elf_Sym Elf64_Sym macro
/openbmc/linux/include/asm-generic/
H A Dmodule.h18 #define Elf_Sym Elf64_Sym macro
35 #define Elf_Sym Elf32_Sym macro
/openbmc/linux/arch/mips/boot/tools/
H A Drelocs.c12 #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()
/openbmc/linux/arch/mips/include/asm/
H A Dmodule.h40 #define Elf_Sym Elf32_Sym macro
58 #define Elf_Sym Elf64_Sym macro
/openbmc/linux/tools/perf/util/
H A Dgenelf.h66 #define Elf_Sym Elf64_Sym macro
77 #define Elf_Sym Elf32_Sym macro
H A Dgenelf.c82 static Elf_Sym symtab[]={
418 shdr->sh_entsize = sizeof(Elf_Sym); in jit_write_elf()
/openbmc/u-boot/tools/
H A Dprelink-riscv.inc21 #define Elf_Sym CONCAT3(Elf, PRELINK_INC_BITS, _Sym)
63 Elf_Sym *dynsym = NULL;
103 #undef Elf_Sym
/openbmc/linux/arch/mips/kernel/
H A Dvpe.c482 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 Dmodule.c322 Elf_Sym *sym; in __apply_relocate()
340 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in __apply_relocate()
/openbmc/linux/arch/riscv/kernel/
H A Dmodule.c346 Elf_Sym *sym; in apply_relocate_add()
360 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
400 Elf_Sym *hi20_sym = in apply_relocate_add()
401 (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
/openbmc/linux/arch/s390/kernel/
H A Dmodule.c146 Elf_Sym *symbols; in module_frob_arch_sections()
166 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections()
258 static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab, in apply_rela()
469 Elf_Sym *symtab; in __apply_relocate_add()
477 symtab = (Elf_Sym *) sechdrs[symindex].sh_addr; in __apply_relocate_add()
/openbmc/linux/arch/arm/include/asm/
H A Dmodule.h48 static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym) in kallsyms_symbol_value()
/openbmc/linux/kernel/
H A Dkexec_file.c1053 static const Elf_Sym *kexec_purgatory_find_symbol(struct purgatory_info *pi, in kexec_purgatory_find_symbol()
1058 const Elf_Sym *syms; in kexec_purgatory_find_symbol()
1079 for (k = 0; k < sechdrs[i].sh_size/sizeof(Elf_Sym); k++) { in kexec_purgatory_find_symbol()
1104 const Elf_Sym *sym; in kexec_purgatory_get_symbol_addr()
1128 const Elf_Sym *sym; in kexec_purgatory_get_set_symbol()
/openbmc/linux/arch/parisc/kernel/
H A Dmodule.c849 Elf_Sym *newptr, *oldptr; in module_finalize()
903 nsyms = symhdr->sh_size / sizeof(Elf_Sym); in module_finalize()
918 nsyms = newptr - (Elf_Sym *)symhdr->sh_addr; in module_finalize()
920 symhdr->sh_size = nsyms * sizeof(Elf_Sym); in module_finalize()
/openbmc/linux/include/linux/
H A Dmodule.h379 Elf_Sym *symtab;
592 static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym) in kallsyms_symbol_value()
/openbmc/linux/arch/loongarch/kernel/
H A Dmodule.c432 Elf_Sym *sym; in apply_relocate_add()
443 sym = (Elf_Sym *)sechdrs[symindex].sh_addr + ELF_R_SYM(rel[i].r_info); in apply_relocate_add()

12