2 * Architecture specific ELF symbol handling and relocation mapping.
4 * Copyright 2017 IBM Corp.
5 * Author(s): Thomas Richter <tmricht@linux.vnet.ibm.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License (version 2 only)
9 * as published by the Free Software Foundation.
14 #ifdef HAVE_LIBELF_SUPPORT
15 bool elf__needs_adjust_symbols(GElf_Ehdr ehdr)
17 if (ehdr.e_type == ET_EXEC)
19 return ehdr.e_type == ET_REL || ehdr.e_type == ET_DYN;
22 void arch__adjust_sym_map_offset(GElf_Sym *sym,
23 GElf_Shdr *shdr __maybe_unused,
26 if (map->type == MAP__FUNCTION)
27 sym->st_value += map->start;