sym-handling.c 542 B

1234567891011121314151617181920212223
  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. #include "map.h"
  11. #include "probe-event.h"
  12. #include "probe-file.h"
  13. #ifdef HAVE_LIBELF_SUPPORT
  14. bool elf__needs_adjust_symbols(GElf_Ehdr ehdr)
  15. {
  16. return ehdr.e_type == ET_EXEC ||
  17. ehdr.e_type == ET_REL ||
  18. ehdr.e_type == ET_DYN;
  19. }
  20. #endif