objtool: Ignore unwind hints for ignored functions
[linux-2.6-microblaze.git] / tools / objtool / check.c
index e5947fb..67cbdcf 100644 (file)
@@ -2909,7 +2909,7 @@ static int validate_unwind_hints(struct objtool_file *file, struct section *sec)
        }
 
        while (&insn->list != &file->insn_list && (!sec || insn->sec == sec)) {
-               if (insn->hint && !insn->visited) {
+               if (insn->hint && !insn->visited && !insn->ignore) {
                        ret = validate_branch(file, insn->func, insn, state);
                        if (ret && backtrace)
                                BT_FUNC("<=== (hint)", insn);