aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorChung-Lin Tang <cltang@codesourcery.com>2013-03-08 10:17:00 +0000
committerChung-Lin Tang <cltang@codesourcery.com>2013-03-08 10:17:00 +0000
commit8e723a10451c6a7abadb6146fa62bbc0ab376f0b (patch)
tree6e4fc2a92a22363b58ba2a223ec4425bd2f20379 /gas/read.c
parent12afa43e27b580694749e622a8a9d20394080f76 (diff)
downloadgdb-8e723a10451c6a7abadb6146fa62bbc0ab376f0b.zip
gdb-8e723a10451c6a7abadb6146fa62bbc0ab376f0b.tar.gz
gdb-8e723a10451c6a7abadb6146fa62bbc0ab376f0b.tar.bz2
2013-03-08 Chung-Lin Tang <cltang@codesourcery.com>
* write.h (struct fix): Add fx_dot_frag field. (dot_frag): Declare. * write.c (dot_frag): New variable. (fix_new_internal): Set fx_dot_frag field with dot_frag. (fixup_segment): Base calculation of fx_offset with fx_dot_frag. * expr.c (expr): Save value of frag_now in dot_frag when setting dot_value. * read.c (emit_expr): Likewise. Delete comments.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gas/read.c b/gas/read.c
index d65971c..2df748a 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -4087,10 +4087,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 ();
+ dot_frag = frag_now;
#ifndef NO_LISTING
#ifdef OBJ_ELF