]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/emultempl/genelf.em
Make bfd.link_next field a union
[thirdparty/binutils-gdb.git] / ld / emultempl / genelf.em
index 8561c17d68833650c56425cc59abbc24a6487307..5c5e1cbf4f44ac0bb75ba7a572363ccc12a34350 100644 (file)
@@ -38,7 +38,7 @@ gld${EMULATION_NAME}_after_open (void)
   after_open_default ();
 
   if (link_info.relocatable)
-    for (ibfd = link_info.input_bfds; ibfd != NULL; ibfd = ibfd->link_next)
+    for (ibfd = link_info.input_bfds; ibfd != NULL; ibfd = ibfd->link.next)
       if ((syms = bfd_get_outsymbols (ibfd)) != NULL
          && bfd_get_flavour (ibfd) == bfd_target_elf_flavour)
        for (sec = ibfd->sections; sec != NULL; sec = sec->next)