diff options
Diffstat (limited to 'tools/perf/arch/arm64/util/sym-handling.c')
-rw-r--r-- | tools/perf/arch/arm64/util/sym-handling.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/perf/arch/arm64/util/sym-handling.c b/tools/perf/arch/arm64/util/sym-handling.c new file mode 100644 index 000000000000..0051b1ee8450 --- /dev/null +++ b/tools/perf/arch/arm64/util/sym-handling.c | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * This program is free software; you can redistribute it and/or modify | ||
3 | * it under the terms of the GNU General Public License, version 2, as | ||
4 | * published by the Free Software Foundation. | ||
5 | * | ||
6 | * Copyright (C) 2015 Naveen N. Rao, IBM Corporation | ||
7 | */ | ||
8 | |||
9 | #include "debug.h" | ||
10 | #include "symbol.h" | ||
11 | #include "map.h" | ||
12 | #include "probe-event.h" | ||
13 | #include "probe-file.h" | ||
14 | |||
15 | #ifdef HAVE_LIBELF_SUPPORT | ||
16 | bool elf__needs_adjust_symbols(GElf_Ehdr ehdr) | ||
17 | { | ||
18 | return ehdr.e_type == ET_EXEC || | ||
19 | ehdr.e_type == ET_REL || | ||
20 | ehdr.e_type == ET_DYN; | ||
21 | } | ||
22 | #endif | ||