Lines Matching refs:sym
37 unsigned char *sym; member
89 static int check_symbol_range(const char *sym, unsigned long long addr, in check_symbol_range() argument
98 if (strcmp(sym, ar->start_sym) == 0) { in check_symbol_range()
101 } else if (strcmp(sym, ar->end_sym) == 0) { in check_symbol_range()
112 char sym[500], stype; in read_symbol() local
115 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, sym); in read_symbol()
117 if (rc != EOF && fgets(sym, 500, in) == NULL) in read_symbol()
121 if (strlen(sym) >= KSYM_NAME_LEN) { in read_symbol()
124 sym, strlen(sym), KSYM_NAME_LEN); in read_symbol()
129 if (strcmp(sym, "_text") == 0) in read_symbol()
131 else if (check_symbol_range(sym, s->addr, text_ranges, in read_symbol()
137 if (strcmp(sym, "__kernel_syscall_via_break") && in read_symbol()
138 strcmp(sym, "__kernel_syscall_via_epc") && in read_symbol()
139 strcmp(sym, "__kernel_sigtramp") && in read_symbol()
140 strcmp(sym, "__gp")) in read_symbol()
145 is_arm_mapping_symbol(sym)) in read_symbol()
148 else if (sym[0] == '$') in read_symbol()
154 else if (!strncmp(sym, ".LASANPC", 8)) in read_symbol()
159 s->len = strlen(sym) + 1; in read_symbol()
160 s->sym = malloc(s->len + 1); in read_symbol()
161 if (!s->sym) { in read_symbol()
166 strcpy((char *)s->sym + 1, sym); in read_symbol()
167 s->sym[0] = stype; in read_symbol()
172 check_symbol_range(sym, s->addr, &percpu_range, 1); in read_symbol()
227 char *sym_name = (char *)s->sym + 1; in symbol_valid()
429 printf(", 0x%02x", table[i].sym[k]); in write_src()
490 learn_symbol(table[pos].sym, table[pos].len); in build_initial_tok_table()
493 free(table[i].sym); in build_initial_tok_table()
520 p1 = table[i].sym; in compress_symbols()
527 forget_symbol(table[i].sym, len); in compress_symbols()
549 learn_symbol(table[i].sym, len); in compress_symbols()
606 c = table[i].sym[j]; in insert_real_symbols_in_table()
631 const char *symbol = (char *)se->sym + 1; in may_be_linker_script_provide_symbol()
689 wa = (sa->sym[0] == 'w') || (sa->sym[0] == 'W'); in compare_symbols()
690 wb = (sb->sym[0] == 'w') || (sb->sym[0] == 'W'); in compare_symbols()
701 wa = prefix_underscores_count((const char *)sa->sym + 1); in compare_symbols()
702 wb = prefix_underscores_count((const char *)sb->sym + 1); in compare_symbols()
726 table[i].sym[0] = 'A'; in make_percpus_absolute()