Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / tools / perf / arch / arm64 / util / sym-handling.c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  *
4  * Copyright (C) 2015 Naveen N. Rao, IBM Corporation
5  */
6
7 #include "debug.h"
8 #include "symbol.h"
9 #include "map.h"
10 #include "probe-event.h"
11 #include "probe-file.h"
12
13 #ifdef HAVE_LIBELF_SUPPORT
14 bool elf__needs_adjust_symbols(GElf_Ehdr ehdr)
15 {
16         return ehdr.e_type == ET_EXEC ||
17                ehdr.e_type == ET_REL ||
18                ehdr.e_type == ET_DYN;
19 }
20 #endif