Linux Perf
sym-handling.c
Go to the documentation of this file.
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
bool __weak elf__needs_adjust_symbols(GElf_Ehdr ehdr)
Definition: symbol-elf.c:661