* write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
authorAlan Modra <amodra@gmail.com>
Wed, 1 May 2002 00:33:09 +0000 (00:33 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 1 May 2002 00:33:09 +0000 (00:33 +0000)
backwards to prevent cascading errors.

gas/ChangeLog
gas/write.c

index 5dda9f20b2875df45ffe8f9fa63652250d122b81..b692ca57d842b8a5c31422c0ab74bba9fc3af3f1 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-01  Alan Modra  <amodra@bigpond.net.au>
+
+       * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
+       backwards to prevent cascading errors.
+
 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
 
        * configure.in: Add support for powerpc-*-windiss.
index f4dc2ae816a6e3868f721cd9715cbb80d81fb0a8..5d5e4c9a0b4712d98ac9cbc3b422de504d1c849b 100644 (file)
@@ -527,6 +527,7 @@ cvt_frag_to_fill (headersP, sec, fragP)
          as_bad_where (fragP->fr_file, fragP->fr_line,
                        _("attempt to .org/.space backwards? (%ld)"),
                        (long) fragP->fr_offset);
+         fragP->fr_offset = 0;
        }
       fragP->fr_type = rs_fill;
       break;