* write.c (relax_segment <rs_space>): Account for fr_fix.
authorAlan Modra <amodra@gmail.com>
Thu, 26 Jul 2001 03:39:29 +0000 (03:39 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 26 Jul 2001 03:39:29 +0000 (03:39 +0000)
gas/ChangeLog
gas/write.c

index 456a6dc95b0df329741f26c1ece6c32f2e769dd8..dc13dc10027446ab3636a25a743f7c07dc2a840e 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * write.c (relax_segment <rs_space>): Account for fr_fix.
+
 2001-07-25  H.J. Lu  <hjl@gnu.org>
 
        * config/tc-mips.c (md_estimate_size_before_relax): Make sure
index 41edcb3545ff8433d3736db84f43aebb760cb352..30f98fb35aa83443a6a7ef628a355e8a1106ad32 100644 (file)
@@ -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;