PR19498, Invalid "symbol definition loop"

PR 19498
	* symbols.c (resolve_symbol_value): Clear sy_resolving on exit
	from function on all paths that set sy_resolving.
This commit is contained in:
Alan Modra 2016-04-04 16:19:27 +09:30
parent 325801bda4
commit 22987cec62
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2016-04-04 Alan Modra <amodra@gmail.com>
PR 19498
* symbols.c (resolve_symbol_value): Clear sy_resolving on exit
from function on all paths that set sy_resolving.
2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* app.c (app_push): use XNEW macro.

View File

@ -1262,7 +1262,10 @@ resolve_symbol_value (symbolS *symp)
resolved = symbol_resolved_p (add_symbol);
if (S_IS_WEAKREFR (symp))
goto exit_dont_set_value;
{
symp->sy_flags.sy_resolving = 0;
goto exit_dont_set_value;
}
break;
case O_uminus: