aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mn10300.c7
-rw-r--r--gas/config/tc-mn10300.h7
2 files changed, 11 insertions, 3 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;
diff --git a/gas/config/tc-mn10300.h b/gas/config/tc-mn10300.h
index 9551652..1b88cf2 100644
--- a/gas/config/tc-mn10300.h
+++ b/gas/config/tc-mn10300.h
@@ -55,11 +55,12 @@ void mn10300_cons_fix_new PARAMS ((fragS *, int, int, expressionS *));
/* The target BFD architecture. */
#define TARGET_ARCH bfd_arch_mn10300
+#ifdef TE_LINUX
+#define TARGET_FORMAT "elf32-am33lin"
+#else
#define TARGET_FORMAT "elf32-mn10300"
+#endif
-/* No shared lib support, so we don't need to ensure externally
- visible symbols can be overridden. */
-#define EXTERN_FORCE_RELOC 0
/* Do not adjust relocations involving symbols in code sections,
because it breaks linker relaxations. This could be fixed in the