aboutsummaryrefslogtreecommitdiff
path: root/ld/plugin.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-02-07 11:01:22 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-02-07 11:01:22 -0800
commit35a1e5f3055fc28f129e4d5d0a993218d8af1baf (patch)
tree620a7a1e2a37218fe5b68536d8586822f0b5940c /ld/plugin.h
parent1952c5cd7d3d24b9647b396731bc4808a2d63d9c (diff)
downloadgdb-35a1e5f3055fc28f129e4d5d0a993218d8af1baf.zip
gdb-35a1e5f3055fc28f129e4d5d0a993218d8af1baf.tar.gz
gdb-35a1e5f3055fc28f129e4d5d0a993218d8af1baf.tar.bz2
Update plugin_maybe_claim
This patch removes the argument of pointer to struct ld_plugin_input_file. This is the first step to extract a plugin_object_p out of plugin_maybe_claim for BFD. * plugin.c: Include "libbfd.h". (plugin_strdup): New. (plugin_maybe_claim): Remove the argument of pointer to struct ld_plugin_input_file. Open and handle input entry. * plugin.h (plugin_maybe_claim): Updated. * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly without passing a pointer to struct ld_plugin_input_file. * ldmain.c: Don't include "libbfd.h". (add_archive_element): Call plugin_maybe_claim directly without passing a pointer to struct ld_plugin_input_file.
Diffstat (limited to 'ld/plugin.h')
-rw-r--r--ld/plugin.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ld/plugin.h b/ld/plugin.h
index 15532cd..59c0df7 100644
--- a/ld/plugin.h
+++ b/ld/plugin.h
@@ -46,8 +46,7 @@ extern void plugin_load_plugins (void);
extern const char *plugin_error_plugin (void);
/* Call 'claim file' hook for all plugins. */
-extern void plugin_maybe_claim (struct ld_plugin_input_file *,
- lang_input_statement_type *);
+extern void plugin_maybe_claim (lang_input_statement_type *);
/* Call 'all symbols read' hook for all plugins. */
extern int plugin_call_all_symbols_read (void);