This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] ld/arc: Make little endian default choice for linker scripts


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1a295c62e0ad0b5342fd5b2889d64087be0b5edb

commit 1a295c62e0ad0b5342fd5b2889d64087be0b5edb
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date:   Thu Apr 7 16:17:08 2016 +0100

    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.

Diff:
---
 ld/ChangeLog                    | 4 ++++
 ld/emulparams/arc-endianness.sh | 7 ++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 24c19a1..fe63b96 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2016-04-07  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+	* emulparams/arc-endianness.sh: Make little endian default choice.
+
 2016-04-07  Nick Clifton  <nickc@redhat.com>
 
 	* scripttempl/elf32msp430.sc (.MSP430.attributes): Fix typo in
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]