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:
H.J. Lu
2015-01-28 12:56:18 -08:00
parent 15f7a26b0f
commit 37a3056ad4
3 changed files with 12 additions and 9 deletions

View File

@ -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;