Skip to content

Commit 829b08e

Browse files
committed
weakref gas internal error
This horrible testcase (cleaned up from oss-fuzz) r=x*2 x=r-r .weakref r,x r=r-5 triggers resolve_symbol_value "gas_assert (final_val == 0)" in weakref handling. * read.c (assign_symbol): Clear weakrefr.
1 parent 738767b commit 829b08e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gas/read.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3306,6 +3306,7 @@ assign_symbol (char *name, int mode)
33063306
retain the value of the symbol at the point of use. */
33073307
else if (S_IS_VOLATILE (symbolP))
33083308
symbolP = symbol_clone (symbolP, 1);
3309+
S_CLEAR_WEAKREFR (symbolP);
33093310
}
33103311

33113312
if (mode == 0)

0 commit comments

Comments
 (0)