diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2019-07-18 03:36:48 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-07-18 21:01:07 +0200 |
commit | e10cd8fe8ddfd28a172d2be57ae0e90c7f752e6a (patch) | |
tree | 819c6225b6167c23c52a230860eb4424157146d9 /init | |
parent | objtool: Track original function across branches (diff) | |
download | linux-e10cd8fe8ddfd28a172d2be57ae0e90c7f752e6a.tar.xz linux-e10cd8fe8ddfd28a172d2be57ae0e90c7f752e6a.zip |
objtool: Refactor function alias logic
- Add an alias check in validate_functions(). With this change, aliases
no longer need uaccess_safe set.
- Add an alias check in decode_instructions(). With this change, the
"if (!insn->func)" check is no longer needed.
- Don't create aliases for zero-length functions, as it can have
unexpected results. The next patch will spit out a warning for
zero-length functions anyway.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/26a99c31426540f19c9a58b9e10727c385a147bc.1563413318.git.jpoimboe@redhat.com
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions