diff options
-rw-r--r-- | tools/perf/util/symbol-elf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index 225eb73ee78b..b02731a19d1f 100644 --- a/tools/perf/util/symbol-elf.c +++ b/tools/perf/util/symbol-elf.c | |||
@@ -69,6 +69,10 @@ static inline uint8_t elf_sym__type(const GElf_Sym *sym) | |||
69 | return GELF_ST_TYPE(sym->st_info); | 69 | return GELF_ST_TYPE(sym->st_info); |
70 | } | 70 | } |
71 | 71 | ||
72 | #ifndef STT_GNU_IFUNC | ||
73 | #define STT_GNU_IFUNC 10 | ||
74 | #endif | ||
75 | |||
72 | static inline int elf_sym__is_function(const GElf_Sym *sym) | 76 | static inline int elf_sym__is_function(const GElf_Sym *sym) |
73 | { | 77 | { |
74 | return (elf_sym__type(sym) == STT_FUNC || | 78 | return (elf_sym__type(sym) == STT_FUNC || |