From: Alan Modra Date: Thu, 6 Apr 2006 04:38:33 +0000 (+0000) Subject: * frags.c (frag_offset_fixed_p): Reinitialise offset before X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec651a3b255b80dbad3920fdfa558a9866ce7d0c;p=binutils-gdb.git * frags.c (frag_offset_fixed_p): Reinitialise offset before second scan. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 3f759e08a80..455d4411282 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2006-04-06 Alan Modra + + * frags.c (frag_offset_fixed_p): Reinitialise offset before + second scan. + 2006-04-05 Richard Sandiford Daniel Jacobowitz diff --git a/gas/frags.c b/gas/frags.c index cfd183fb3d4..b08ef502cbf 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) {