From 3f3cdb030204d24387194ff4e77438cd7141dceb Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 1 May 2002 00:33:09 +0000 Subject: [PATCH] * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org backwards to prevent cascading errors. --- gas/ChangeLog | 5 +++++ gas/write.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 5dda9f20b28..b692ca57d84 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-05-01 Alan Modra + + * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org + backwards to prevent cascading errors. + 2002-04-30 Mark Mitchell * configure.in: Add support for powerpc-*-windiss. diff --git a/gas/write.c b/gas/write.c index f4dc2ae816a..5d5e4c9a0b4 100644 --- a/gas/write.c +++ b/gas/write.c @@ -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; -- 2.30.2