Searched refs:elf (Results 1 – 5 of 5) sorted by relevance
| /scripts/mod/ |
| A D | symsearch.c | 54 for (Elf_Sym *sym = elf->symtab_start; sym < elf->symtab_stop; sym++) { in symbol_count() 55 if (is_valid_name(elf, sym)) in symbol_count() 74 for (Elf_Sym *sym = elf->symtab_start; sym < elf->symtab_stop; sym++) { in symsearch_populate() 75 if (is_valid_name(elf, sym)) { in symsearch_populate() 124 void symsearch_init(struct elf_info *elf) in symsearch_init() argument 130 elf->symsearch->table_size = table_size; in symsearch_init() 132 symsearch_populate(elf, elf->symsearch->table, table_size); in symsearch_init() 133 qsort(elf->symsearch->table, table_size, in symsearch_init() 141 free(elf->symsearch); in symsearch_finish() 142 elf->symsearch = NULL; in symsearch_finish() [all …]
|
| A D | modpost.c | 988 if (is_valid_name(elf, sym)) in find_tosym() 995 new_sym = symsearch_find_nearest(elf, addr, get_secindex(elf, sym), in find_tosym() 1002 if (secndx >= elf->num_sections) in is_executable_section() 1020 fromsym = sym_name(elf, from); in default_mismatch_handler() 1023 tosym = sym_name(elf, tsym); in default_mismatch_handler() 1051 else if (is_executable_section(elf, get_secindex(elf, tsym))) in default_mismatch_handler() 1076 label = find_fromsym(elf, faddr, elf->export_symbol_secndx); in check_export_symbol() 1092 name = sym_name(elf, sym); in check_export_symbol() 1141 const char *tosec = sec_name(elf, get_secindex(elf, sym)); in check_section_mismatch() 1348 switch (elf->hdr->e_machine) { in section_rela() [all …]
|
| A D | modpost.h | 193 static inline bool is_valid_name(struct elf_info *elf, Elf_Sym *sym) in is_valid_name() argument 195 const char *name = elf->strtab + sym->st_name; in is_valid_name() 203 void symsearch_init(struct elf_info *elf); 204 void symsearch_finish(struct elf_info *elf); 205 Elf_Sym *symsearch_find_nearest(struct elf_info *elf, Elf_Addr addr,
|
| /scripts/gendwarfksyms/ |
| A D | kabi.c | 124 Elf *elf; in kabi_read_rules() local 162 elf = elf_begin(fd, ELF_C_READ_MMAP, NULL); in kabi_read_rules() 163 if (!elf) in kabi_read_rules() 166 if (elf_getshdrstrndx(elf, &shstrndx) < 0) in kabi_read_rules() 169 scn = elf_nextscn(elf, NULL); in kabi_read_rules() 178 sname = elf_strptr(elf, shstrndx, shdr->sh_name); in kabi_read_rules() 189 scn = elf_nextscn(elf, scn); in kabi_read_rules() 194 check(elf_end(elf)); in kabi_read_rules() 246 check(elf_end(elf)); in kabi_read_rules()
|
| A D | symbols.c | 200 Elf *elf; in elf_for_each_global() local 205 elf = elf_begin(fd, ELF_C_READ_MMAP, NULL); in elf_for_each_global() 206 if (!elf) in elf_for_each_global() 209 scn = elf_nextscn(elf, NULL); in elf_for_each_global() 223 scn = elf_nextscn(elf, scn); in elf_for_each_global() 226 sym_size = gelf_fsize(elf, ELF_T_SYM, 1, EV_CURRENT); in elf_for_each_global() 227 scn = elf_nextscn(elf, NULL); in elf_for_each_global() 266 name = elf_strptr(elf, shdr->sh_link, in elf_for_each_global() 278 scn = elf_nextscn(elf, scn); in elf_for_each_global() 281 check(elf_end(elf)); in elf_for_each_global()
|
Completed in 16 milliseconds