| /linux/scripts/ |
| H A D | elf-parse.h | 23 } Elf_Sym; typedef 43 uint8_t (*sym_type)(Elf_Sym *sym); 44 uint32_t (*sym_name)(Elf_Sym *sym); 45 uint64_t (*sym_value)(Elf_Sym *sym); 46 uint16_t (*sym_shndx)(Elf_Sym *sym); 152 static inline uint64_t sym64_##fn_name(Elf_Sym *sym) \ 157 static inline uint64_t sym32_##fn_name(Elf_Sym *sym) \ 162 static inline uint64_t sym_##fn_name(Elf_Sym *sym) \ 168 static inline uint32_t sym64_##fn_name(Elf_Sym *sym) \ 173 static inline uint32_t sym32_##fn_name(Elf_Sym *sym) \ [all …]
|
| 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 | 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()
|
| H A D | sorttable.c | 556 Elf_Sym *sym, *end_sym; in get_mcount_loc() 600 Elf_Sym *sym; in do_sort() 601 const Elf_Sym *symtab; in do_sort() 603 Elf_Sym *sort_needed_sym = NULL; in do_sort() 719 symtab = (const Elf_Sym *)((const char *)ehdr + shdr_offset(symtab_sec)); in do_sort()
|
| /linux/arch/x86/tools/ |
| H A D | relocs.c | 12 #define Elf_Sym ElfW(Sym) macro 20 static int sym_index(Elf_Sym *sym); 46 Elf_Sym *symtab; 277 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() 329 static int sym_index(Elf_Sym *sym) in sym_index() 331 Elf_Sym *symtab = secs[shsymtabndx].symtab; in sym_index() 491 num_syms = sec->shdr.sh_size / sizeof(Elf_Sym); in read_symtabs() 504 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() 577 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) { in print_absolute_symbols() 578 Elf_Sym *sym; in print_absolute_symbols() [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() 185 kallsyms->num_symtab = symsec->sh_size / sizeof(Elf_Sym); in add_kallsyms() 278 const Elf_Sym *sym = &kallsyms->symtab[i]; in find_kallsyms_symbol() 389 const Elf_Sym *sym = &kallsyms->symtab[symnum]; in module_get_kallsym() 410 const Elf_Sym *sy in module_get_kallsym() [all...] |
| H A D | main.c | 1516 Elf_Sym *sym = (void *)symsec->sh_addr; in simplify_symbols() 1522 for (i = 1; i < symsec->sh_size / sizeof(Elf_Sym); i++) { in simplify_symbols() 2309 Elf_Sym *syms = (void *)info->hdr + sym_shdr->sh_offset; in elf_validity_cache_strtab()
|
| /linux/scripts/mod/ |
| 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 | file2alias.c | 1485 Elf_Sym *sym, const char *symname) in handle_moddevtable()
|
| /linux/include/asm-generic/ |
| H A D | module.h | 18 #define Elf_Sym Elf64_Sym macro 31 #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() 477 Elf_Sym *sh_symtab; in walk_relocs() 497 Elf_Sym *sym = &sh_symtab[ELF_R_SYM(rel->r_info)]; in walk_relocs() 505 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/arch/mips/kernel/ |
| H A D | vpe.c | 483 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in simplify_symbols() 485 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in simplify_symbols() 539 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in dump_elfsymbols() 540 unsigned int i, n = sechdrs[symindex].sh_size / sizeof(Elf_Sym); in dump_elfsymbols() 554 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in find_vpe_symbols() 555 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/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/arch/loongarch/kernel/ |
| H A D | module.c | 485 Elf_Sym *sym; in apply_relocate_add() 498 sym = (Elf_Sym *)sechdrs[symindex].sh_addr + ELF_R_SYM(rel[i].r_info); in apply_relocate_add() 537 Elf_Sym *hi20_sym = in apply_relocate_add() 538 (Elf_Sym *)sechdrs[symindex].sh_addr + ELF_R_SYM(rel[j].r_info); in apply_relocate_add()
|
| /linux/kernel/ |
| H A D | kexec_file.c | 1138 static const Elf_Sym *kexec_purgatory_find_symbol(struct purgatory_info *pi, in kexec_purgatory_find_symbol() 1143 const Elf_Sym *syms; in kexec_purgatory_find_symbol() 1164 for (k = 0; k < sechdrs[i].sh_size/sizeof(Elf_Sym); k++) { in kexec_purgatory_find_symbol() 1189 const Elf_Sym *sym; in kexec_purgatory_get_symbol_addr() 1213 const Elf_Sym *sym; in kexec_purgatory_get_set_symbol()
|
| /linux/arch/riscv/kernel/ |
| H A D | module.c | 773 Elf_Sym *sym; in apply_relocate_add() 798 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 839 Elf_Sym *hi20_sym = in apply_relocate_add() 840 (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
|
| H A D | machine_kexec_file.c | 163 const Elf_Sym *sym; /* symbol to relocate */ in arch_kexec_apply_relocations_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/tools/perf/util/ |
| H A D | genelf.c | 57 static Elf_Sym symtab[]={ 344 shdr->sh_entsize = sizeof(Elf_Sym); in jit_write_elf()
|
| /linux/kernel/livepatch/ |
| H A D | core.c | 204 Elf_Sym *sym; in klp_resolve_symbols() 224 sym = (Elf_Sym *)sechdrs[symndx].sh_addr + ELF_R_SYM(relas[i].r_info); in klp_resolve_symbols()
|
| /linux/arch/s390/kernel/ |
| H A D | machine_kexec_file.c | 328 const Elf_Sym *sym; /* symbol to relocate */ in arch_kexec_apply_relocations_add()
|
| /linux/arch/s390/tools/ |
| H A D | relocs.c | 39 #define Elf_Sym ElfW(Sym) macro
|