aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-04-07 16:17:08 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2016-04-07 16:17:08 +0100
commit1a295c62e0ad0b5342fd5b2889d64087be0b5edb (patch)
treed73dc92e8aa17a7de44be2597659e4467a427ccc /ld/emulparams
parentabe051ba82bee9eebbc5149a3b62b057f2d8b14a (diff)
downloadgdb-1a295c62e0ad0b5342fd5b2889d64087be0b5edb.zip
gdb-1a295c62e0ad0b5342fd5b2889d64087be0b5edb.tar.gz
gdb-1a295c62e0ad0b5342fd5b2889d64087be0b5edb.tar.bz2
ld/arc: Make little endian default choice for linker scripts
When building with --enable-targets=all the target string is not set to something that matches the pattern arc*-*, and so the script used to decide if we should build big or little endian linker script currently exits with an error. This commit makes little endian linker script be the default, which will be used when building for all targets, this matches the behaviour from before I made the endianness switchable, when we only ever built little endian linker scripts anyway. ld/ChangeLog: * emulparams/arc-endianness.sh: Make little endian default choice.
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