aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-coff.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2001-05-24 21:39:09 +0000
committerTom Rix <trix@redhat.com>2001-05-24 21:39:09 +0000
commit6877bb43e568ec434f3ade26c8f0be850ac03083 (patch)
tree9f4b2331fd7ac77e3b7fd0f0b296cb8cbf8ae6e4 /gas/config/obj-coff.c
parent11a383ba1714b896b7a547d2ce2436e821d92aa0 (diff)
downloadgdb-6877bb43e568ec434f3ade26c8f0be850ac03083.zip
gdb-6877bb43e568ec434f3ade26c8f0be850ac03083.tar.gz
gdb-6877bb43e568ec434f3ade26c8f0be850ac03083.tar.bz2
Fix for gas seg fault and neg line numbers
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r--gas/config/obj-coff.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index 1961fec..da07960 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -446,12 +446,17 @@ add_lineno (frag, offset, num)
{
abort ();
}
+
+#ifndef OBJ_XCOFF
+ /* The native aix assembler accepts negative line number */
+
if (num <= 0)
{
/* Zero is used as an end marker in the file. */
as_warn (_("Line numbers must be positive integers\n"));
num = 1;
}
+#endif /* OBJ_XCOFF */
new_line->next = line_nos;
new_line->frag = frag;
new_line->l.line_number = num;