|
@@ -1746,8 +1746,13 @@ static bool ignore_unreachable_insn(struct instruction *insn)
|
|
|
/*
|
|
|
* Ignore any unused exceptions. This can happen when a whitelisted
|
|
|
* function has an exception table entry.
|
|
|
+ *
|
|
|
+ * Also ignore alternative replacement instructions. This can happen
|
|
|
+ * when a whitelisted function uses one of the ALTERNATIVE macros.
|
|
|
*/
|
|
|
- if (!strcmp(insn->sec->name, ".fixup"))
|
|
|
+ if (!strcmp(insn->sec->name, ".fixup") ||
|
|
|
+ !strcmp(insn->sec->name, ".altinstr_replacement") ||
|
|
|
+ !strcmp(insn->sec->name, ".altinstr_aux"))
|
|
|
return true;
|
|
|
|
|
|
/*
|