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]

sy_resolving fix


It was possible to exit from resolve_symbol_value with sy_resolving
still set, which could incorrectly trigger a "Symbol definition loop"
error.

gas/ChangeLog
	* symbols.c (resolve_symbol_value): Clear sy_resolving before
	taking exit_dont_set_value.

-- 
Alan Modra

Index: gas/symbols.c
===================================================================
RCS file: /cvs/src/src/gas/symbols.c,v
retrieving revision 1.22
diff -u -p -r1.22 symbols.c
--- symbols.c	2001/05/22 10:23:48	1.22
+++ symbols.c	2001/05/24 23:11:15
@@ -949,6 +949,7 @@ resolve_symbol_value (symp)
 		}
 	      final_val = 0;
 	      resolved = symbol_resolved_p (add_symbol);
+	      symp->sy_resolving = 0;
 	      goto exit_dont_set_value;
 	    }
 	  else


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