* configure.tgt: Set emulation for arm-*-eabi*.
authorDaniel Jacobowitz <drow@false.org>
Wed, 16 Mar 2005 17:27:17 +0000 (17:27 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 16 Mar 2005 17:27:17 +0000 (17:27 +0000)
* config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
* config/te-armeabi.h: New file.
* config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
* config/te-symbian.h: Include "te-armeabi.h".

gas/ChangeLog
gas/config/tc-arm.c
gas/config/te-armeabi.h [new file with mode: 0644]
gas/config/te-armlinuxeabi.h
gas/config/te-symbian.h
gas/configure.tgt

index fb12069..1891d85 100644 (file)
@@ -1,3 +1,11 @@
+2005-03-16  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * configure.tgt: Set emulation for arm-*-eabi*.
+       * config/tc-arm.c (meabi_flags): Check EABI_DEFAULT.
+       * config/te-armeabi.h: New file.
+       * config/te-armlinuxeabi.h (EABI_DEFAULT): Define.
+       * config/te-symbian.h: Include "te-armeabi.h".
+
 2005-03-16  Nick Clifton  <nickc@redhat.com>
            Ben Elliston  <bje@au.ibm.com>
 
index 5cce0a9..17a605d 100644 (file)
@@ -159,7 +159,11 @@ static int march_fpu_opt = -1;
 static int mfpu_opt = -1;
 static int mfloat_abi_opt = -1;
 #ifdef OBJ_ELF
+# ifdef EABI_DEFAULT
+static int meabi_flags = EABI_DEFAULT;
+# else
 static int meabi_flags = EF_ARM_EABI_UNKNOWN;
+# endif
 #endif
 
 /* This array holds the chars that always start a comment.  If the
diff --git a/gas/config/te-armeabi.h b/gas/config/te-armeabi.h
new file mode 100644 (file)
index 0000000..7453593
--- /dev/null
@@ -0,0 +1,8 @@
+/* The EABI requires the use of VFP.  */
+#define FPU_DEFAULT FPU_ARCH_VFP_V2
+#define EABI_DEFAULT EF_ARM_EABI_VER4
+
+#define LOCAL_LABELS_DOLLAR 1
+#define LOCAL_LABELS_FB 1
+
+#include "obj-format.h"
index e6abf01..b3f5f1e 100644 (file)
@@ -2,3 +2,4 @@
 
 /* The EABI requires the use of VFP.  */
 #define FPU_DEFAULT FPU_ARCH_VFP_V2
+#define EABI_DEFAULT EF_ARM_EABI_VER4
index 0522486..e609049 100644 (file)
@@ -1,3 +1,3 @@
 #define TE_SYMBIAN 1
-#include "obj-elf.h"
 
+#include "te-armeabi.h"
index 576e14e..f180b52 100644 (file)
@@ -110,12 +110,12 @@ case ${generic_target} in
   arm-*-coff | thumb-*-coff)           fmt=coff ;;
   arm-*-rtems* | thumb-*-rtems*)       fmt=elf ;;
   arm-*-elf | thumb-*-elf)             fmt=elf ;;
-  arm-*-eabi*)                         fmt=elf ;;
+  arm-*-eabi*)                         fmt=elf em=armeabi ;;
   arm-*-symbianelf*)                   fmt=elf em=symbian ;;
   arm-*-kaos*)                         fmt=elf ;;
   arm-*-conix*)                                fmt=elf ;;
   arm-*-linux*aout*)                   fmt=aout em=linux ;;
-  arm-*-linux-gnueabi*)                        fmt=elf  em=armlinuxeabi ;;      
+  arm-*-linux-gnueabi*)                        fmt=elf  em=armlinuxeabi ;;
   arm-*-linux-gnu*)                    fmt=elf  em=linux ;;
   arm-*-uclinux*)                      fmt=elf  em=linux ;;
   arm-*-netbsdelf*)                    fmt=elf  em=nbsd ;;