summaryrefslogtreecommitdiff
path: root/ld/plugin.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-02-14 09:53:15 +0000
committerAlan Modra <amodra@gmail.com>2011-02-14 09:53:15 +0000
commit498cd2a0fdc89ee9a81ce4ad0019d64a1f6dbcd7 (patch)
treecaa0fbf2a0481739b0df9aa5df7f604f75ae4a6e /ld/plugin.h
parent298c1ec2a052b71bd60c244f2c3f8c6367214af1 (diff)
downloadbinutils-gdb-498cd2a0fdc89ee9a81ce4ad0019d64a1f6dbcd7.tar.gz
* ldmain.c (remove_output): Rename to..
(ld_cleanup): ..this. Call bfd_cache_close_all and plugin_call_cleanup. (main): Adjust. * plugin.c (plugin_call_cleanup): Make global. (plugin_load_plugins): Don't register plugin_call_cleanup with xatexit. * plugin.h (plugin_call_cleanup): Declare.
Diffstat (limited to 'ld/plugin.h')
-rw-r--r--ld/plugin.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/plugin.h b/ld/plugin.h
index fc5f37f2dab..5b340be29ef 100644
--- a/ld/plugin.h
+++ b/ld/plugin.h
@@ -1,5 +1,5 @@
/* Plugin control for the GNU linker.
- Copyright 2010 Free Software Foundation, Inc.
+ Copyright 2010, 2011 Free Software Foundation, Inc.
This file is part of the GNU Binutils.
@@ -50,6 +50,9 @@ extern int plugin_call_claim_file (const struct ld_plugin_input_file *file,
/* Call 'all symbols read' hook for all plugins. */
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