blob: c9de0012195f313080ad7c2115fa72e7bce1f049 [file] [log] [blame]
Naveen N. Raod2332092015-04-28 17:35:35 +05301/*
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
13bool 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