summaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2004-08-05 16:55:00 +0000
committerBob Wilson <bob.wilson@acm.org>2004-08-05 16:55:00 +0000
commitd3db74eb6f1502a6fae1635b33813db9c4c6ddb4 (patch)
treec6531ff5b5b3393140e7ae2078f45ac9cb339f6d /gas/write.c
parentb52f0b0c78aa89b47fdde6f8e0bb02e2746e4397 (diff)
downloadbinutils-redhat-d3db74eb6f1502a6fae1635b33813db9c4c6ddb4.tar.gz
* write.c (relax_segment): Use was_address instead of address when
setting fr_fix field for align frag due to backwards .org.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c
index 509596fbdd..a713a9d398 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -2412,7 +2412,7 @@ relax_segment (struct frag *segment_frag_root, segT segment)
fragP->fr_type = rs_align;
fragP->fr_subtype = 0;
fragP->fr_offset = 0;
- fragP->fr_fix = after - address;
+ fragP->fr_fix = after - was_address;
growth = stretch;
}