aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-06-24 21:18:25 +0000
committerIan Lance Taylor <ian@airs.com>1998-06-24 21:18:25 +0000
commit146f8b771cea5240c9ffaeda91377754313513d3 (patch)
tree86bd75c7481975ea004a3193afd17ceeeca86e32 /bfd/elflink.h
parent9576a4d5a06eed92dad1dd3af4d2708a15e268f7 (diff)
downloadgdb-146f8b771cea5240c9ffaeda91377754313513d3.zip
gdb-146f8b771cea5240c9ffaeda91377754313513d3.tar.gz
gdb-146f8b771cea5240c9ffaeda91377754313513d3.tar.bz2
* elflink.h (elf_bfd_final_link): Loop over input_bfds using the
link_next field, not the next field.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index b5e0d03..d711281 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -3723,7 +3723,7 @@ elf_bfd_final_link (abfd, info)
we could write the relocs out and then read them again; I don't
know how bad the memory loss will be. */
- for (sub = info->input_bfds; sub != NULL; sub = sub->next)
+ for (sub = info->input_bfds; sub != NULL; sub = sub->link_next)
sub->output_has_begun = false;
for (o = abfd->sections; o != NULL; o = o->next)
{