sym-handling.c 476 B

12345678910111213141516171819
  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. #include "debug.h"
  9. #include "symbol.h"
  10. #ifdef HAVE_LIBELF_SUPPORT
  11. bool elf__needs_adjust_symbols(GElf_Ehdr ehdr)
  12. {
  13. return ehdr.e_type == ET_EXEC ||
  14. ehdr.e_type == ET_REL ||
  15. ehdr.e_type == ET_DYN;
  16. }
  17. #endif