* frags.c (frag_offset_fixed_p): Reinitialise offset before
authorAlan Modra <amodra@gmail.com>
Thu, 6 Apr 2006 04:38:33 +0000 (04:38 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 6 Apr 2006 04:38:33 +0000 (04:38 +0000)
second scan.

gas/ChangeLog
gas/frags.c

index 3f759e08a80f30e7e0a7dd8172dd9bfc55a59a93..455d441128212db2fdc8c4b9ad02d226453fab2b 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-06  Alan Modra  <amodra@bigpond.net.au>
+
+       * frags.c (frag_offset_fixed_p): Reinitialise offset before
+       second scan.
+
 2006-04-05  Richard Sandiford  <richard@codesourcery.com>
            Daniel Jacobowitz  <dan@codesourcery.com>
 
index cfd183fb3d41ec63d70add20111b0a97161e7430..b08ef502cbf7bb3e1c7859dae660deaf52aa08a1 100644 (file)
@@ -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)
     {