OSDN Git Service

objtool: Remove .fixup handling
authorPeter Zijlstra <peterz@infradead.org>
Wed, 10 Nov 2021 10:01:25 +0000 (11:01 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 11 Dec 2021 08:09:51 +0000 (09:09 +0100)
The .fixup has gone the way of the Dodo, that test will always be
false.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20211110101326.261496792@infradead.org
tools/objtool/check.c

index e28172f..9fd8149 100644 (file)
@@ -3310,14 +3310,10 @@ static bool ignore_unreachable_insn(struct objtool_file *file, struct instructio
                return true;
 
        /*
-        * Ignore any unused exceptions.  This can happen when a whitelisted
-        * function has an exception table entry.
-        *
-        * Also ignore alternative replacement instructions.  This can happen
+        * Ignore alternative replacement instructions.  This can happen
         * when a whitelisted function uses one of the ALTERNATIVE macros.
         */
-       if (!strcmp(insn->sec->name, ".fixup") ||
-           !strcmp(insn->sec->name, ".altinstr_replacement") ||
+       if (!strcmp(insn->sec->name, ".altinstr_replacement") ||
            !strcmp(insn->sec->name, ".altinstr_aux"))
                return true;