[PATCH v2 0/4] Add lto and none-lto input support for ld -r
H.J. Lu
hjl.tools@gmail.com
Tue Sep 10 02:21:15 GMT 2024
On Mon, Sep 9, 2024 at 5:25 PM Alan Modra <amodra@gmail.com> wrote:
>
> I haven't yet reviewed this patch and it's going to be a while before
> I can, so if someone else can review that would be good.
>
> The following tweak is needed to compile using gcc-4.9.
>
> diff --git a/bfd/format.c b/bfd/format.c
> index 949fbd72000..8655c7f639e 100644
> --- a/bfd/format.c
> +++ b/bfd/format.c
> @@ -360,7 +360,7 @@ bfd_set_lto_type (bfd *abfd ATTRIBUTE_UNUSED)
> {
> asection *sec;
> enum bfd_lto_object_type type = lto_non_ir_object;
> - struct lto_section lsection = { 0 };
> + struct lto_section lsection = { 0, 0, 0, 0 };
> /* GCC uses .gnu.lto_.lto.<some_hash> as a LTO bytecode information
> section. */
> for (sec = abfd->sections; sec != NULL; sec = sec->next)
>
> --
> Alan Modra
I included it in my local branch.
Thanks.
--
H.J.
More information about the Binutils
mailing list