aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/arc-endianness.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/ld/emulparams/arc-endianness.sh b/ld/emulparams/arc-endianness.sh
index 4d6158b..7a66dee 100644
--- a/ld/emulparams/arc-endianness.sh
+++ b/ld/emulparams/arc-endianness.sh
@@ -1,10 +1,11 @@
+# Select an appropriate endinaness based on the value of target. When
+# building for all targets we select little endian, which is what the
+# '*' pattern is for.
case ${target} in
arceb-*)
ARC_ENDIAN="big"
;;
- arc-*)
+ arc-* | * )
ARC_ENDIAN="little"
;;
- *)
- exit 1
esac