diff options
author | Alan Modra <amodra@gmail.com> | 2025-08-06 11:36:03 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-08-07 22:14:49 +0930 |
commit | 97b6ffe44b98479f991ab38b4c59f4fd0f30198e (patch) | |
tree | 35673cff954fdfd692c79fb68b6f8238f975cab7 /bfd/plugin.h | |
parent | bdee55420232f16d73210517e96320636e0f2e7d (diff) | |
download | binutils-97b6ffe44b98479f991ab38b4c59f4fd0f30198e.zip binutils-97b6ffe44b98479f991ab38b4c59f4fd0f30198e.tar.gz binutils-97b6ffe44b98479f991ab38b4c59f4fd0f30198e.tar.bz2 |
Move struct plugin_data_struct to plugin.c
It isn't needed anywhere except plugin.c. The typedef can disappear.
Also make a forward declaraion for ld_plugin_input_file in plugin.h
so that this header can be used without first including plugin-api.h.
bfd/
* plugin.h (struct ld_plugin_input_file): Forward declare.
(struct plugin_data_struct): Move to..
* plugin.c: ..here.
(add_symbols): Size plugin_data without using type.
* archive.c: Don't include plugin-api.h.
* elflink.c: Likewise.
* format.c: Likewise.
binutils/
* ar.c: Don't include plugin-api.h or ansidecl.h. Only
include plugin.h when BFD_SUPPORTS_PLUGINS.
* nm.c: Don't include plugin-api.h. Only include plugin.h
when BFD_SUPPORTS_PLUGINS.
* objcopy.c: Likewise.
ld/
* ldfile.c: Don't include plugin-api.h.
* ldmain.c: Likewise.
Diffstat (limited to 'bfd/plugin.h')
-rw-r--r-- | bfd/plugin.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/bfd/plugin.h b/bfd/plugin.h index 6acb5fa..d981c51 100644 --- a/bfd/plugin.h +++ b/bfd/plugin.h @@ -21,6 +21,8 @@ #ifndef _PLUGIN_H_ #define _PLUGIN_H_ +struct ld_plugin_input_file; + void bfd_plugin_set_program_name (const char *); int bfd_plugin_open_input (bfd *, struct ld_plugin_input_file *); void bfd_plugin_set_plugin (const char *); @@ -29,13 +31,4 @@ bool bfd_link_plugin_object_p (bfd *); void register_ld_plugin_object_p (bfd_cleanup (*object_p) (bfd *, bool)); void bfd_plugin_close_file_descriptor (bfd *, int); -typedef struct plugin_data_struct -{ - int nsyms; - const struct ld_plugin_symbol *syms; - int object_only_nsyms; - asymbol **object_only_syms; -} -plugin_data_struct; - #endif |