summaryrefslogtreecommitdiff
path: root/ld/plugin.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-01-28 12:56:18 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-01-28 12:56:18 -0800
commit37a3056ad4d02a5295e0288d630dea377907a60c (patch)
treef0949c5e25323bbd594f17f857a8d34a1db51654 /ld/plugin.c
parent15f7a26b0f42be812b0471ec09d91bad696fe26e (diff)
downloadbinutils-gdb-37a3056ad4d02a5295e0288d630dea377907a60c.tar.gz
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.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r--ld/plugin.c8
1 files changed, 6 insertions, 2 deletions
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;