summaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-05-01 00:33:09 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-05-01 00:33:09 +0000
commit2e60d144f865fa962076c8254e9cf587451716fc (patch)
treea312bdbcfd015929fd68162656eda2c106ff7b12 /gas/write.c
parent45cd669634dcb26fb30e69c8fd646744dcde5a1f (diff)
downloadbinutils-redhat-2e60d144f865fa962076c8254e9cf587451716fc.tar.gz
* write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
backwards to prevent cascading errors.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/write.c b/gas/write.c
index f4dc2ae816..5d5e4c9a0b 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;