[PATCH v2 0/4] Add lto and none-lto input support for ld -r
Alan Modra
amodra@gmail.com
Tue Sep 10 00:25:49 GMT 2024
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
More information about the Binutils
mailing list