summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-03-28 11:18:27 +0000
committerNick Clifton <nickc@redhat.com>2011-03-28 11:18:27 +0000
commit5b806d279379d653094d290ae57498ad4ddd6cbf (patch)
treed3966f050b1757f3c84268f6b56c4c1ff3c23d58 /gas
parentf31d24a0a1236c774e77b9bdb69eab870dddb8e9 (diff)
downloadbinutils-5b806d279379d653094d290ae57498ad4ddd6cbf.tar.gz
binutils-5b806d279379d653094d290ae57498ad4ddd6cbf.tar.bz2
binutils-5b806d279379d653094d290ae57498ad4ddd6cbf.zip
Add support for DragonFlyBSD target.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-i386.c1
-rw-r--r--gas/config/te-dragonfly.h30
-rw-r--r--gas/configure.tgt5
4 files changed, 40 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2df29707f87..e7598095148 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-26 John Marino <binutils@marino.st>
+
+ * configure.tgt: Fix support for *-*-dragonfly*.
+ * config/tc-i386.c: define SVR4_COMMENT_CHARS for dragonfly.
+ * config/te-dragonfly.h: New file.
+
2011-03-24 Eric B. Weddington <eric.weddington@atmel.com>
* config/tc-avr.c (mcu_types): Add new devices: atmega325pa,
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 5cc82190a8c..e7f9c9aa97a 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -303,6 +303,7 @@ const char extra_symbol_chars[] = "*%-(["
&& !defined (TE_LINUX) \
&& !defined (TE_NETWARE) \
&& !defined (TE_FreeBSD) \
+ && !defined (TE_DragonFly) \
&& !defined (TE_NetBSD)))
/* This array holds the chars that always start a comment. If the
pre-processor is disabled, these aren't very useful. The option
diff --git a/gas/config/te-dragonfly.h b/gas/config/te-dragonfly.h
new file mode 100644
index 00000000000..45da36fee87
--- /dev/null
+++ b/gas/config/te-dragonfly.h
@@ -0,0 +1,30 @@
+/* te-dragonfly.h -- DragonFlyBSD target environment declarations.
+ Copyright 2011 Free Software Foundation, Inc.
+
+ This file is part of GAS, the GNU Assembler.
+
+ GAS is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ GAS is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GAS; see the file COPYING. If not, write to the Free
+ Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
+ 02110-1301, USA. */
+
+/* Target environment for DragonFlyBSD. It is the same as the generic
+ target, except that it arranges via the TE_DragonFly define to
+ suppress the use of "/" as a comment character. Some code in the
+ DragonFlyBSD kernel uses "/" to mean division. (What a concept!) */
+#define TE_DragonFly 1
+
+#define LOCAL_LABELS_DOLLAR 1
+#define LOCAL_LABELS_FB 1
+
+#include "obj-format.h"
diff --git a/gas/configure.tgt b/gas/configure.tgt
index 8ce9003c894..a01ff6c973f 100644
--- a/gas/configure.tgt
+++ b/gas/configure.tgt
@@ -205,8 +205,8 @@ case ${generic_target} in
i386-*-freebsdaout*) fmt=aout em=386bsd ;;
i386-*-freebsd[12].*) fmt=aout em=386bsd ;;
i386-*-freebsd[12]) fmt=aout em=386bsd ;;
- i386-*-freebsd* | i386-*-kfreebsd*-gnu | i386-*-dragonfly*)
- fmt=elf em=freebsd ;;
+ i386-*-freebsd* \
+ | i386-*-kfreebsd*-gnu) fmt=elf em=freebsd ;;
i386-*-sysv*) fmt=coff ;;
i386-*-sco3.2v5*coff) fmt=coff ;;
i386-*-isc*) fmt=coff ;;
@@ -421,6 +421,7 @@ case ${generic_target} in
z8k-*-coff | z8k-*-sim) fmt=coff ;;
*-*-aout | *-*-scout) fmt=aout ;;
+ *-*-dragonfly*) fmt=elf em=dragonfly ;;
*-*-freebsd* | *-*-kfreebsd*-gnu) fmt=elf em=freebsd ;;
*-*-bsd*) fmt=aout em=sun3 ;;
*-*-generic) fmt=generic ;;