aboutsummaryrefslogtreecommitdiff
path: root/gas/frags.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-04-06 04:38:33 +0000
committerAlan Modra <amodra@gmail.com>2006-04-06 04:38:33 +0000
commitec651a3b255b80dbad3920fdfa558a9866ce7d0c (patch)
tree608be89ecbcb4b6f7eed739fde50f2cb4024a699 /gas/frags.c
parenta656f8ab2c9787a0f6aba17dc94dcb2e9507801b (diff)
downloadgdb-ec651a3b255b80dbad3920fdfa558a9866ce7d0c.zip
gdb-ec651a3b255b80dbad3920fdfa558a9866ce7d0c.tar.gz
gdb-ec651a3b255b80dbad3920fdfa558a9866ce7d0c.tar.bz2
* frags.c (frag_offset_fixed_p): Reinitialise offset before
second scan.
Diffstat (limited to 'gas/frags.c')
-rw-r--r--gas/frags.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/frags.c b/gas/frags.c
index cfd183f..b08ef50 100644
--- a/gas/frags.c
+++ b/gas/frags.c
@@ -419,6 +419,7 @@ frag_offset_fixed_p (fragS *frag1, fragS *frag2, bfd_vma *offset)
}
/* Maybe frag1 is after frag2. */
+ off = frag1->fr_address - frag2->fr_address;
frag = frag2;
while (frag->fr_type == rs_fill)
{