Naveen N. Rao | d233209 | 2015-04-28 17:35:35 +0530 | [diff] [blame^] | 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 | |
| 12 | #ifdef HAVE_LIBELF_SUPPORT |
| 13 | bool elf__needs_adjust_symbols(GElf_Ehdr ehdr) |
| 14 | { |
| 15 | return ehdr.e_type == ET_EXEC || |
| 16 | ehdr.e_type == ET_REL || |
| 17 | ehdr.e_type == ET_DYN; |
| 18 | } |
| 19 | #endif |