From e750405d4b3a2318f2363648fd5a926c81496197 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Thu, 5 Aug 2004 16:55:00 +0000 Subject: [PATCH] * write.c (relax_segment): Use was_address instead of address when setting fr_fix field for align frag due to backwards .org. --- gas/ChangeLog | 5 +++++ gas/write.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index ac1eaeb8152..f221a158042 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2004-08-05 Bob Wilson + + * 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 Introduce SH2a support. diff --git a/gas/write.c b/gas/write.c index 509596fbdda..a713a9d3981 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; } -- 2.30.2