* write.c (cvt_frag_to_fill): Set fr_offset to zero on .org

backwards to prevent cascading errors.
This commit is contained in:
Alan Modra 2002-05-01 00:33:09 +00:00
parent 880d85fa11
commit 3f3cdb0302
2 changed files with 6 additions and 0 deletions

View 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.

View 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;