aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-alpha.h
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-alpha.h')
-rw-r--r--gas/config/tc-alpha.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gas/config/tc-alpha.h b/gas/config/tc-alpha.h
index d6a8842..50e4389 100644
--- a/gas/config/tc-alpha.h
+++ b/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")