[PATCH] plugin: Set is_strip_input in bfd of object only section
H.J. Lu
hjl.tools@gmail.com
Fri Aug 8 21:14:03 GMT 2025
Copy the is_strip_input field in bfd of object only section from the
original bfd so that bfd_check_format_matches can check it.
* plugin.c (bfd_plugin_get_symbols_in_object_only): Copy the
is_strip_input field in bfd of object only section from the
original bfd.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
bfd/plugin.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/bfd/plugin.c b/bfd/plugin.c
index 733e7f0f322..57f4d32edb6 100644
--- a/bfd/plugin.c
+++ b/bfd/plugin.c
@@ -207,6 +207,7 @@ bfd_plugin_get_symbols_in_object_only (bfd *abfd)
/* Prevent this recursive call into bfd_check_format from
attempting to load the plugin again while it is running. */
nbfd->plugin_format = bfd_plugin_no;
+ nbfd->is_strip_input = abfd->is_strip_input;
if (!bfd_check_format (nbfd, bfd_object))
{
/* There is no object only section if it isn't a bfd_object
--
2.50.1
More information about the Binutils
mailing list