objtool: Handle function aliases
authorPeter Zijlstra <peterz@infradead.org>
Thu, 28 Feb 2019 13:17:50 +0000 (14:17 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Apr 2019 09:02:24 +0000 (11:02 +0200)
commit09f30d83d33029faf6377a86f5ae80a658af9254
tree6ba85425fb00f070251d985ba7c0c5e669601393
parenta4d09dde9093a04a9b48fb9e5ef3177bdfaff199
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>
tools/objtool/elf.c
tools/objtool/elf.h