2009-05-26 16:12:03 +02:00
|
|
|
/* Plugin support for BFD.
|
2018-01-03 06:17:27 +01:00
|
|
|
Copyright (C) 2009-2018 Free Software Foundation, Inc.
|
2009-05-26 16:12:03 +02:00
|
|
|
|
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
|
|
|
MA 02110-1301, USA. */
|
|
|
|
|
|
|
|
#ifndef _PLUGIN_H_
|
|
|
|
#define _PLUGIN_H_
|
|
|
|
|
2009-05-28 13:30:49 +02:00
|
|
|
void bfd_plugin_set_program_name (const char *);
|
2016-07-16 06:02:16 +02:00
|
|
|
int bfd_plugin_open_input (bfd *, struct ld_plugin_input_file *);
|
2009-05-26 16:12:03 +02:00
|
|
|
void bfd_plugin_set_plugin (const char *);
|
2015-02-11 14:01:03 +01:00
|
|
|
bfd_boolean bfd_plugin_target_p (const bfd_target *);
|
|
|
|
bfd_boolean bfd_plugin_specified_p (void);
|
2016-06-20 14:10:29 +02:00
|
|
|
bfd_boolean bfd_link_plugin_object_p (bfd *);
|
2015-02-11 14:01:03 +01:00
|
|
|
void register_ld_plugin_object_p (const bfd_target *(*object_p) (bfd *));
|
2009-05-26 16:12:03 +02:00
|
|
|
|
|
|
|
typedef struct plugin_data_struct
|
|
|
|
{
|
|
|
|
int nsyms;
|
|
|
|
const struct ld_plugin_symbol *syms;
|
|
|
|
}
|
|
|
|
plugin_data_struct;
|
|
|
|
|
|
|
|
#endif
|