public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* gas/write.c - infinite loop
@ 2005-02-24 17:45 James Lemke
  2005-02-24 17:47 ` Nick Clifton
  2005-02-25 15:45 ` Alan Modra
  0 siblings, 2 replies; 6+ messages in thread
From: James Lemke @ 2005-02-24 17:45 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

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

[-- Attachment #2: gas-write.c-patch --]
[-- Type: text/x-patch, Size: 1054 bytes --]

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);

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-02-25 13:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-24 17:45 gas/write.c - infinite loop James Lemke
2005-02-24 17:47 ` Nick Clifton
2005-02-24 18:40   ` James Lemke
2005-02-24 22:43     ` James Lemke
2005-02-25 15:45 ` Alan Modra
2005-02-25 16:03   ` James Lemke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).