aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-07-26 03:39:29 +0000
committerAlan Modra <amodra@gmail.com>2001-07-26 03:39:29 +0000
commit050be34e826a2a94d3e777b34b07620a87d22c8c (patch)
treeb8e46f436b1ccadf6367d855a7c189abf51c6e1c /gas/write.c
parent9f30d7f5405c3238886aeaf349d1769351ef8c8c (diff)
downloadgdb-050be34e826a2a94d3e777b34b07620a87d22c8c.zip
gdb-050be34e826a2a94d3e777b34b07620a87d22c8c.tar.gz
gdb-050be34e826a2a94d3e777b34b07620a87d22c8c.tar.bz2
* write.c (relax_segment <rs_space>): Account for fr_fix.
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 41edcb3..30f98fb 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;