From 050be34e826a2a94d3e777b34b07620a87d22c8c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 26 Jul 2001 03:39:29 +0000 Subject: [PATCH] * write.c (relax_segment ): Account for fr_fix. --- gas/ChangeLog | 4 ++++ gas/write.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 456a6dc95b0..dc13dc10027 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2001-07-26 Alan Modra + + * write.c (relax_segment ): Account for fr_fix. + 2001-07-25 H.J. Lu * config/tc-mips.c (md_estimate_size_before_relax): Make sure diff --git a/gas/write.c b/gas/write.c index 41edcb3545f..30f98fb35aa 100644 --- a/gas/write.c +++ b/gas/write.c @@ -2479,7 +2479,7 @@ relax_segment (segment_frag_root, segment) fragP->fr_symbol = 0; } else - growth = (was_address + amount + growth = (was_address + fragP->fr_fix + amount - fragP->fr_next->fr_address); } break; -- 2.30.2