diff options
author | Dave Korn <dave.korn@artimi.com> | 2010-11-05 07:20:07 +0000 |
---|---|---|
committer | Dave Korn <dave.korn@artimi.com> | 2010-11-05 07:20:07 +0000 |
commit | d44ad554d42dd9e80692b0fd2a48b950d6a7a38e (patch) | |
tree | 987bf61e8b05d508a46bd6d738d8fd110fd69a02 /ld/plugin.h | |
parent | * ldlang.c (lang_add_section): Distinguish ELF treatment of NOLOAD. (diff) | |
download | binutils-gdb-d44ad554d42dd9e80692b0fd2a48b950d6a7a38e.tar.gz binutils-gdb-d44ad554d42dd9e80692b0fd2a48b950d6a7a38e.tar.bz2 binutils-gdb-d44ad554d42dd9e80692b0fd2a48b950d6a7a38e.zip |
* plugin.h (plugin_active_plugins_p): New prototype.
(is_ir_dummy_bfd): Delete prototype.
* plugin.c: Fix formatting issues.
(is_ir_dummy_bfd): Make static.
(plugin_active_plugins_p): New function.
* ldfile.c (ldfile_try_open_bfd): Use it to save work if no plugins
are loaded. Always close file descriptor after claim handler returns.
* ldmain.c (add_archive_element): Likewise.
Diffstat (limited to 'ld/plugin.h')
-rw-r--r-- | ld/plugin.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ld/plugin.h b/ld/plugin.h index 5bd083f0607..b79e739223e 100644 --- a/ld/plugin.h +++ b/ld/plugin.h @@ -33,6 +33,10 @@ extern int plugin_opt_plugin (const char *plugin); error if none. */ extern int plugin_opt_plugin_arg (const char *arg); +/* Return true if any plugins are active this run. Only valid + after options have been processed. */ +extern bfd_boolean plugin_active_plugins_p (void); + /* Load up and initialise all plugins after argument parsing. */ extern int plugin_load_plugins (void); @@ -56,9 +60,6 @@ extern int plugin_call_cleanup (void); 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); -/* Check if the BFD passed in is an IR dummy object file. */ -extern bfd_boolean is_ir_dummy_bfd (const bfd *abfd); - /* Notice-symbol bfd linker callback hook. */ extern bfd_boolean plugin_notice (struct bfd_link_info *info, const char *name, bfd *abfd, asection *section, |