mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
Make plugin_get_ir_dummy_bfd static
* plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to ... * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
|
||||||
|
...
|
||||||
|
* plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
|
||||||
|
|
||||||
2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
|
2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/17878
|
PR ld/17878
|
||||||
|
@ -241,8 +241,12 @@ plugin_opt_plugin_arg (const char *arg)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a dummy BFD. */
|
/* Generate a dummy BFD to represent an IR file, for any callers of
|
||||||
bfd *
|
plugin_call_claim_file to use as the handle in the ld_plugin_input_file
|
||||||
|
struct that they build to pass in. The BFD is initially writable, so
|
||||||
|
that symbols can be added to it; it must be made readable after the
|
||||||
|
add_symbols hook has been called so that it can be read when linking. */
|
||||||
|
static bfd *
|
||||||
plugin_get_ir_dummy_bfd (const char *name, bfd *srctemplate)
|
plugin_get_ir_dummy_bfd (const char *name, bfd *srctemplate)
|
||||||
{
|
{
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
|
@ -59,11 +59,4 @@ extern int plugin_call_all_symbols_read (void);
|
|||||||
/* Call 'cleanup' hook for all plugins at exit. */
|
/* Call 'cleanup' hook for all plugins at exit. */
|
||||||
extern void plugin_call_cleanup (void);
|
extern void plugin_call_cleanup (void);
|
||||||
|
|
||||||
/* Generate a dummy BFD to represent an IR file, for any callers of
|
|
||||||
plugin_call_claim_file to use as the handle in the ld_plugin_input_file
|
|
||||||
struct that they build to pass in. The BFD is initially writable, so
|
|
||||||
that symbols can be added to it; it must be made readable after the
|
|
||||||
add_symbols hook has been called so that it can be read when linking. */
|
|
||||||
extern bfd *plugin_get_ir_dummy_bfd (const char *name, bfd *template);
|
|
||||||
|
|
||||||
#endif /* !def GLD_PLUGIN_H */
|
#endif /* !def GLD_PLUGIN_H */
|
||||||
|
Reference in New Issue
Block a user