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