section tdata tidy
Andreas Schwab
schwab@suse.de
Mon Dec 16 11:00:50 GMT 2024
On Dez 16 2024, Alan Modra wrote:
> diff --git a/bfd/som.c b/bfd/som.c
> index 86f7f4121e4..171dbc4a393 100644
> --- a/bfd/som.c
> +++ b/bfd/som.c
> @@ -5328,14 +5328,12 @@ extern const bfd_target hppa_som_vec;
> static bool
> som_new_section_hook (bfd *abfd, asection *newsect)
> {
> + size_t amt = sizeof (struct som_section_data_struct);
> +
> + newsect->used_by_bfd = bfd_zalloc (abfd, amt);
I guess you meant to tidy that too.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Binutils
mailing list