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]

[PATCH] GAS relaxing bug


This fixes a bug in frag relaxing that causes the m68k/pcrel test to fail.

2001-03-18  Andreas Schwab  <schwab@suse.de>

	* write.c (relax_frag): Make sure we don't add STRETCH a second
	time.

Index: write.c
===================================================================
RCS file: /cvs/src/src/gas/write.c,v
retrieving revision 1.27
diff -u -a -r1.27 write.c
--- write.c	2001/03/08 23:24:22	1.27
+++ write.c	2001/03/18 17:59:25
@@ -2069,6 +2069,8 @@
 	 Beware zero-length frags.  */
 
       if (stretch != 0
+	  /* Don't add STRETCH a second time.  */
+	  && fragP != sym_frag
 	  && S_GET_SEGMENT (symbolP) == segment
 	  && (sym_frag->fr_address > was_address
 	      || (sym_frag->fr_address == was_address

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


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