summaryrefslogtreecommitdiff
path: root/bfd/cpu-s390.c
diff options
context:
space:
mode:
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2012-07-27 15:56:42 +0000
committerAndreas Krebbel <Andreas.Krebbel@de.ibm.com>2012-07-27 15:56:42 +0000
commit23ecd77a697ab1a77d95fa894483adb79ecd3fc4 (patch)
tree77980b611426738df100d0fdafcdebe0b96a21f5 /bfd/cpu-s390.c
parent308e8549f527bb0a2b093eca9a52bad4e79a8457 (diff)
downloadbinutils-redhat-23ecd77a697ab1a77d95fa894483adb79ecd3fc4.tar.gz
2012-07-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* cpu-s390.c (bfd_s390_64_arch, bfd_s390_arch): Pick the default arch depending on the target size.
Diffstat (limited to 'bfd/cpu-s390.c')
-rw-r--r--bfd/cpu-s390.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/cpu-s390.c b/bfd/cpu-s390.c
index 1a581e4720..1cd3af1a7e 100644
--- a/bfd/cpu-s390.c
+++ b/bfd/cpu-s390.c
@@ -33,7 +33,11 @@ const bfd_arch_info_type bfd_s390_64_arch =
"s390",
"s390:64-bit",
3, /* section alignment power */
+#if BFD_DEFAULT_TARGET_SIZE == 64
TRUE, /* the default */
+#else
+ FALSE, /* the default */
+#endif
bfd_default_compatible,
bfd_default_scan,
bfd_arch_default_fill,
@@ -50,7 +54,11 @@ const bfd_arch_info_type bfd_s390_arch =
"s390",
"s390:31-bit",
3, /* section alignment power */
+#if BFD_DEFAULT_TARGET_SIZE == 64
+ FALSE, /* the default */
+#else
TRUE, /* the default */
+#endif
bfd_default_compatible,
bfd_default_scan,
bfd_arch_default_fill,