[PATCH] plugin: Set is_strip_input in bfd of object only section
Alan Modra
amodra@gmail.com
Fri Aug 8 23:11:55 GMT 2025
On Fri, Aug 08, 2025 at 02:14:03PM -0700, H.J. Lu wrote:
> 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
Seems unnecessary. Won't the bfd_plugin_no ensure the plugin object_p
always returns NULL, and thus is_strip_input is never tested in
bfd_check_format?
--
Alan Modra
More information about the Binutils
mailing list