diff options
author | Bob Wilson <bob.wilson@acm.org> | 2004-08-05 16:55:00 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2004-08-05 16:55:00 +0000 |
commit | e750405d4b3a2318f2363648fd5a926c81496197 (patch) | |
tree | 463d89f93d671f56dbc08b07a2182c0f57bd16ca /gas | |
parent | 69babf952362a62217c27b01dee0232738cde192 (diff) | |
download | binutils-e750405d4b3a2318f2363648fd5a926c81496197.zip binutils-e750405d4b3a2318f2363648fd5a926c81496197.tar.gz binutils-e750405d4b3a2318f2363648fd5a926c81496197.tar.bz2 |
* 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')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/write.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index ac1eaeb..f221a15 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2004-08-05 Bob Wilson <bob.wilson@acm.org> + + * write.c (relax_segment): Use was_address instead of address when + setting fr_fix field for align frag due to backwards .org. + 2004-07-29 Alexandre Oliva <aoliva@redhat.com> Introduce SH2a support. diff --git a/gas/write.c b/gas/write.c index 509596f..a713a9d 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; } |