This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed, PATCH] Make plugin_get_ir_dummy_bfd static
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Wed, 28 Jan 2015 12:58:06 -0800
- Subject: [committed, PATCH] Make plugin_get_ir_dummy_bfd static
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
I checked in this patch to make plugin_get_ir_dummy_bfd static.
H.J.
---
* plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
...
* plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
---
ld/ChangeLog | 6 ++++++
ld/plugin.c | 8 ++++++--
ld/plugin.h | 7 -------
3 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 9152e18..c20211b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,11 @@
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>
+
PR ld/17878
* plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
(get_view): New function.
diff --git a/ld/plugin.c b/ld/plugin.c
index c6df096..2b79e1a 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 82cf162..c5435ff 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 */
--
1.9.3