This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
gas/write.c - infinite loop
- From: James Lemke <jim at wasabisystems dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 24 Feb 2005 11:31:01 -0500
- Subject: gas/write.c - infinite loop
I came across a problem with gas hanging recently. The attached patch
was the fix. It seems obvious, but I'm boot strapping on i686-linux
now.
comments? OK for mainline?
Jim.
--
James Lemke jim@wasabisystems.com Orillia, Ontario
http://www.wasabisystems.com
Index: gas/ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.2371
diff -u -p -r1.2371 ChangeLog
--- gas/ChangeLog 23 Feb 2005 12:28:01 -0000 1.2371
+++ gas/ChangeLog 24 Feb 2005 16:22:13 -0000
@@ -1,3 +1,7 @@
+2005-02-24 James Lemke <jim@wasabisystems.com>
+
+ * write.c (write_object_file): Make link update unconditional.
+
2005-02-23 Alan Modra <amodra@bigpond.net.au>
* cgen.c: Warning fixes.
Index: gas/write.c
===================================================================
RCS file: /cvs/src/src/gas/write.c,v
retrieving revision 1.82
diff -u -p -r1.82 write.c
--- gas/write.c 7 Feb 2005 03:13:10 -0000 1.82
+++ gas/write.c 24 Feb 2005 16:22:14 -0000
@@ -1474,8 +1474,7 @@ write_object_file (void)
bfd_section_list_remove (stdoutput, seclist);
stdoutput->section_count--;
}
- else
- seclist = &(*seclist)->next;
+ seclist = &(*seclist)->next;
}
i = 0;
bfd_map_over_sections (stdoutput, renumber_sections, &i);