aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-moxie.h
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2014-07-27 08:51:20 -0400
committerAnthony Green <green@moxielogic.com>2014-07-27 08:51:20 -0400
commit48494700d58ee0dc781d288191679072cbaf9d16 (patch)
treee08d09f8663a2c6afcdb3cf783b310b79461fc88 /gas/config/tc-moxie.h
parente76c5d173bbf7137555919dd136004a7c0118af7 (diff)
downloadgdb-48494700d58ee0dc781d288191679072cbaf9d16.zip
gdb-48494700d58ee0dc781d288191679072cbaf9d16.tar.gz
gdb-48494700d58ee0dc781d288191679072cbaf9d16.tar.bz2
Add moxiebox target
Diffstat (limited to 'gas/config/tc-moxie.h')
-rw-r--r--gas/config/tc-moxie.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-moxie.h b/gas/config/tc-moxie.h
index d5a24cd..ed4f273 100644
--- a/gas/config/tc-moxie.h
+++ b/gas/config/tc-moxie.h
@@ -19,13 +19,13 @@
Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
#define TC_MOXIE 1
+#ifndef TARGET_BYTES_BIG_ENDIAN
#define TARGET_BYTES_BIG_ENDIAN 1
+#endif
#define WORKING_DOT_WORD
/* This macro is the BFD architecture to pass to `bfd_set_arch_mach'. */
-const char *moxie_target_format;
-#define DEFAULT_TARGET_FORMAT "elf32-bigmoxie"
-#define TARGET_FORMAT moxie_target_format
+#define TARGET_FORMAT (target_big_endian ? "elf32-bigmoxie" : "elf32-littlemoxie")
#define TARGET_ARCH bfd_arch_moxie