plugin.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Plugin support for BFD.
  2. Copyright (C) 2009-2015 Free Software Foundation, Inc.
  3. This file is part of BFD, the Binary File Descriptor library.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. #ifndef _PLUGIN_H_
  17. #define _PLUGIN_H_
  18. #include "bfd.h"
  19. void bfd_plugin_set_program_name (const char *);
  20. void bfd_plugin_set_plugin (const char *);
  21. bfd_boolean bfd_plugin_target_p (const bfd_target *);
  22. bfd_boolean bfd_plugin_specified_p (void);
  23. void register_ld_plugin_object_p (const bfd_target *(*object_p) (bfd *));
  24. typedef struct plugin_data_struct
  25. {
  26. int nsyms;
  27. const struct ld_plugin_symbol *syms;
  28. }
  29. plugin_data_struct;
  30. #endif