TestBFD.cpp 283 B

1234567891011121314151617181920
  1. #include <bfd.h>
  2. // STD includes
  3. #include <cstdlib>
  4. int main(int /*argc*/, char * /*argv*/[])
  5. {
  6. bfd *abfd = 0;
  7. asymbol *symbol = 0;
  8. asection *p = 0;
  9. bfd_init();
  10. abfd = bfd_openr("/path/to/library", 0);
  11. if (!abfd)
  12. {
  13. return false;
  14. }
  15. return EXIT_SUCCESS;
  16. }