summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/gas/config/tc-alpha.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/gas/config/tc-alpha.h')
-rw-r--r--contrib/binutils/gas/config/tc-alpha.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/binutils/gas/config/tc-alpha.h b/contrib/binutils/gas/config/tc-alpha.h
index 5505861..247fea6 100644
--- a/contrib/binutils/gas/config/tc-alpha.h
+++ b/contrib/binutils/gas/config/tc-alpha.h
@@ -28,10 +28,17 @@
#define TARGET_ARCH bfd_arch_alpha
+#ifdef TE_FreeBSD
+#define ELF_TARGET_FORMAT "elf64-alpha-freebsd"
+#endif
+#ifndef ELF_TARGET_FORMAT
+#define ELF_TARGET_FORMAT "elf64-alpha"
+#endif
+
#define TARGET_FORMAT (OUTPUT_FLAVOR == bfd_target_ecoff_flavour \
? "ecoff-littlealpha" \
: OUTPUT_FLAVOR == bfd_target_elf_flavour \
- ? "elf64-alpha" \
+ ? ELF_TARGET_FORMAT \
: OUTPUT_FLAVOR == bfd_target_evax_flavour \
? "vms-alpha" \
: "unknown-format")
OpenPOWER on IntegriCloud