From: H.J. Lu Date: Wed, 28 Jan 2015 20:56:18 +0000 (-0800) Subject: Make plugin_get_ir_dummy_bfd static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37a3056ad4d02a5295e0288d630dea377907a60c;p=binutils-gdb.git 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 9152e18a348..c20211b9641 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2015-01-28 H.J. Lu + + * 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 PR ld/17878 diff --git a/ld/plugin.c b/ld/plugin.c index c6df096c20d..2b79e1a002d 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -241,8 +241,12 @@ plugin_opt_plugin_arg (const char *arg) return 0; } -/* Create a dummy BFD. */ -bfd * +/* 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. */ +static bfd * plugin_get_ir_dummy_bfd (const char *name, bfd *srctemplate) { bfd *abfd; diff --git a/ld/plugin.h b/ld/plugin.h index 82cf16264f0..c5435ffec38 100644 --- a/ld/plugin.h +++ b/ld/plugin.h @@ -59,11 +59,4 @@ extern int plugin_call_all_symbols_read (void); /* Call 'cleanup' hook for all plugins at exit. */ 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 */