This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
sy_resolving fix
- To: binutils at sources dot redhat dot com
- Subject: sy_resolving fix
- From: amodra at one dot net dot au
- Date: Fri, 25 May 2001 09:16:35 +0930
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