From: Nick Clifton Date: Fri, 14 Nov 2008 13:03:25 +0000 (+0000) Subject: * read.c (emit_expr): Grow frag before filling it so that X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bc251014580513b8b4e3e4a5d1547ca2442644e;p=binutils-gdb.git * read.c (emit_expr): Grow frag before filling it so that dot_value remains valid. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 1ab7773cb96..5a1973748b7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2008-11-14 Mat Hostetter + + * read.c (emit_expr): Grow frag before filling it so that + dot_value remains valid. + 2008-11-14 Peter Jansen PR 7026 diff --git a/gas/read.c b/gas/read.c index 1cf5e9a02ee..c6f04d08a18 100644 --- a/gas/read.c +++ b/gas/read.c @@ -3934,6 +3934,9 @@ emit_expr (expressionS *exp, unsigned int nbytes) if (need_pass_2) return; + /* Grow the current frag now so that dot_value does not get invalidated + if the frag were to fill up in the frag_more() call below. */ + frag_grow (nbytes); dot_value = frag_now_fix (); #ifndef NO_LISTING