mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
perf symbols: Fix missing GNU IFUNC symbols
Symbols of type STT_GNU_IFUNC are functions so accept them as such. Signed-off-by: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
1f2a7069b6
commit
a2f3b6bf0a
1 changed files with 2 additions and 1 deletions
|
|
@ -49,7 +49,8 @@ static inline uint8_t elf_sym__type(const GElf_Sym *sym)
|
|||
|
||||
static inline int elf_sym__is_function(const GElf_Sym *sym)
|
||||
{
|
||||
return elf_sym__type(sym) == STT_FUNC &&
|
||||
return (elf_sym__type(sym) == STT_FUNC ||
|
||||
elf_sym__type(sym) == STT_GNU_IFUNC) &&
|
||||
sym->st_name != 0 &&
|
||||
sym->st_shndx != SHN_UNDEF;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue