diff options
| -rw-r--r-- | tools/perf/util/symbol-elf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index 3b7dbf51d4a9..6864661a79dd 100644 --- a/tools/perf/util/symbol-elf.c +++ b/tools/perf/util/symbol-elf.c | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include <inttypes.h> | 6 | #include <inttypes.h> |
| 7 | 7 | ||
| 8 | #include "symbol.h" | 8 | #include "symbol.h" |
| 9 | #include "vdso.h" | ||
| 9 | #include <symbol/kallsyms.h> | 10 | #include <symbol/kallsyms.h> |
| 10 | #include "debug.h" | 11 | #include "debug.h" |
| 11 | 12 | ||
| @@ -618,6 +619,7 @@ int symsrc__init(struct symsrc *ss, struct dso *dso, const char *name, | |||
| 618 | GElf_Shdr shdr; | 619 | GElf_Shdr shdr; |
| 619 | ss->adjust_symbols = (ehdr.e_type == ET_EXEC || | 620 | ss->adjust_symbols = (ehdr.e_type == ET_EXEC || |
| 620 | ehdr.e_type == ET_REL || | 621 | ehdr.e_type == ET_REL || |
| 622 | is_vdso_map(dso->short_name) || | ||
| 621 | elf_section_by_name(elf, &ehdr, &shdr, | 623 | elf_section_by_name(elf, &ehdr, &shdr, |
| 622 | ".gnu.prelink_undo", | 624 | ".gnu.prelink_undo", |
| 623 | NULL) != NULL); | 625 | NULL) != NULL); |
