diff options
author | Peter Zijlstra <peterz@infradead.org> | 2019-02-28 14:17:50 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-04-03 11:02:24 +0200 |
commit | 09f30d83d33029faf6377a86f5ae80a658af9254 (patch) | |
tree | 6ba85425fb00f070251d985ba7c0c5e669601393 /tools/objtool/elf.h | |
parent | a4d09dde9093a04a9b48fb9e5ef3177bdfaff199 (diff) | |
download | linux-stable-09f30d83d33029faf6377a86f5ae80a658af9254.tar.gz linux-stable-09f30d83d33029faf6377a86f5ae80a658af9254.tar.bz2 linux-stable-09f30d83d33029faf6377a86f5ae80a658af9254.zip |
objtool: Handle function aliases
Function aliases result in different symbols for the same set of
instructions; track a canonical symbol so there is a unique point of
access.
This again prepares the way for function attributes. And in particular
the need for aliases comes from how KASAN uses them.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/objtool/elf.h')
-rw-r--r-- | tools/objtool/elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/elf.h b/tools/objtool/elf.h index bc97ed86b9cd..968265b4b4cd 100644 --- a/tools/objtool/elf.h +++ b/tools/objtool/elf.h @@ -61,7 +61,7 @@ struct symbol { unsigned char bind, type; unsigned long offset; unsigned int len; - struct symbol *pfunc, *cfunc; + struct symbol *pfunc, *cfunc, *alias; }; struct rela { |