* so they need a little help, NOP out any KCOV calls from noinstr
         * text.
         */
-       if (insn->sec->noinstr &&
-           !strncmp(insn->call_dest->name, "__sanitizer_cov_", 16)) {
+       if (insn->sec->noinstr && insn->call_dest->kcov) {
                if (reloc) {
                        reloc->type = R_NONE;
                        elf_write_reloc(file->elf, reloc);
                insn->type = sibling ? INSN_RETURN : INSN_NOP;
        }
 
-       if (mcount && !strcmp(insn->call_dest->name, "__fentry__")) {
+       if (mcount && insn->call_dest->fentry) {
                if (sibling)
                        WARN_FUNC("Tail call to __fentry__ !?!?", insn->sec, insn->offset);
 
                } else if (reloc->sym->type == STT_SECTION) {
                        dest_sec = reloc->sym->sec;
                        dest_off = arch_dest_reloc_offset(reloc->addend);
-               } else if (arch_is_retpoline(reloc->sym)) {
+               } else if (reloc->sym->retpoline_thunk) {
                        /*
                         * Retpoline jumps are really dynamic jumps in
                         * disguise, so convert them accordingly.
 
                        add_call_dest(file, insn, dest, false);
 
-               } else if (arch_is_retpoline(reloc->sym)) {
+               } else if (reloc->sym->retpoline_thunk) {
                        /*
                         * Retpoline calls are really dynamic calls in
                         * disguise, so convert them accordingly.
        return 0;
 }
 
-static int read_static_call_tramps(struct objtool_file *file)
+static int classify_symbols(struct objtool_file *file)
 {
        struct section *sec;
        struct symbol *func;
 
        for_each_sec(file, sec) {
                list_for_each_entry(func, &sec->symbol_list, list) {
-                       if (func->bind == STB_GLOBAL &&
-                           !strncmp(func->name, STATIC_CALL_TRAMP_PREFIX_STR,
+                       if (func->bind != STB_GLOBAL)
+                               continue;
+
+                       if (!strncmp(func->name, STATIC_CALL_TRAMP_PREFIX_STR,
                                     strlen(STATIC_CALL_TRAMP_PREFIX_STR)))
                                func->static_call_tramp = true;
+
+                       if (arch_is_retpoline(func))
+                               func->retpoline_thunk = true;
+
+                       if (!strcmp(func->name, "__fentry__"))
+                               func->fentry = true;
+
+                       if (!strncmp(func->name, "__sanitizer_cov_", 16))
+                               func->kcov = true;
                }
        }
 
        /*
         * Must be before add_{jump_call}_destination.
         */
-       ret = read_static_call_tramps(file);
+       ret = classify_symbols(file);
        if (ret)
                return ret;
 
 
 static bool is_fentry_call(struct instruction *insn)
 {
-       if (insn->type == INSN_CALL && insn->call_dest &&
-           insn->call_dest->type == STT_NOTYPE &&
-           !strcmp(insn->call_dest->name, "__fentry__"))
+       if (insn->type == INSN_CALL &&
+           insn->call_dest &&
+           insn->call_dest->fentry)
                return true;
 
        return false;