aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mn10300.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-07-10 04:44:56 +0000
committerAlexandre Oliva <aoliva@redhat.com>2003-07-10 04:44:56 +0000
commit2ce28d43c4144c41b34872acf04c472568e65fd8 (patch)
tree357dcc425c45ad8abb265c206a8806f5bd87fa2e /gas/config/tc-mn10300.c
parent73c3cd1c3d50d01c07fb350b764fb4d10e6ce825 (diff)
downloadgdb-2ce28d43c4144c41b34872acf04c472568e65fd8.zip
gdb-2ce28d43c4144c41b34872acf04c472568e65fd8.tar.gz
gdb-2ce28d43c4144c41b34872acf04c472568e65fd8.tar.bz2
2002-12-12 Alexandre Oliva <aoliva@redhat.com>
* config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero. 2001-05-09 Alexandre Oliva <aoliva@redhat.com> * configure.in (am33_2.0, mn10300-*-linux*): Added. * configure: Rebuilt. * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to elf32-am33lin. * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0 by default.
Diffstat (limited to 'gas/config/tc-mn10300.c')
-rw-r--r--gas/config/tc-mn10300.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c
index e36d0f9..8324646 100644
--- a/gas/config/tc-mn10300.c
+++ b/gas/config/tc-mn10300.c
@@ -1213,10 +1213,17 @@ md_begin ()
}
/* Set the default machine type. */
+#ifdef TE_LINUX
+ if (!bfd_set_arch_mach (stdoutput, bfd_arch_mn10300, AM33_2))
+ as_warn (_("could not set architecture and machine"));
+
+ current_machine = AM33_2;
+#else
if (!bfd_set_arch_mach (stdoutput, bfd_arch_mn10300, MN103))
as_warn (_("could not set architecture and machine"));
current_machine = MN103;
+#endif
}
static symbolS *GOT_symbol;