This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The x86 gas seems broken.


On Thu, Jul 26, 2001 at 10:36:00AM +0930, Alan Modra wrote:
> On Wed, Jul 25, 2001 at 11:03:21AM -0700, H . J . Lu wrote:
> > Assertion failure in write_contents at write.c line 1189.
> > Please report this bug.
> > 
> > Any ideas?
> 
> Almost certainly a bug I introduced.  I'll take a look.

Yeah, it was.

gas/ChangeLog
	* write.c (relax_segment <rs_space>): Account for fr_fix.

Index: gas/write.c
===================================================================
RCS file: /cvs/src/src/gas/write.c,v
retrieving revision 1.42
diff -u -p -r1.42 write.c
--- write.c	2001/07/23 13:03:39	1.42
+++ write.c	2001/07/26 03:36:46
@@ -2479,7 +2479,7 @@ relax_segment (segment_frag_root, segmen
 			fragP->fr_symbol = 0;
 		      }
 		    else
-		      growth = (was_address + amount
+		      growth = (was_address + fragP->fr_fix + amount
 				- fragP->fr_next->fr_address);
 		  }
 		break;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]