1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 *
4 * Copyright (C) 2015 Naveen N. Rao, IBM Corporation
5 */
6
7 #include "symbol.h" // for the elf__needs_adjust_symbols() prototype
8 #include <stdbool.h>
9
10 #ifdef HAVE_LIBELF_SUPPORT
11 #include <gelf.h>
12
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