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: Change default linker emulation for nps400


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

commit d7488716eef3747cc99b0e2b50743a48f59389ee
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date:   Thu Jan 26 10:33:23 2017 +0000

    ld/arc: Change default linker emulation for nps400
    
    If we are configuring for an arc/linux target, and --with-cpu=nps400 is
    used at configure time then change the default linker emulation to the
    nps specific version.  All of the alternative linker emulations are
    still available using the -mNAME option for ld.
    
    ld/ChangeLog:
    
    	* configure.tgt (arc*-*-linux*): Change the default linker
    	emulation based on --with-cpu selection.
    	* NEWS: Mention new configuration option.

Diff:
---
 ld/ChangeLog     |  6 ++++++
 ld/NEWS          |  3 +++
 ld/configure.tgt | 11 +++++++++--
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 681a0d7..397dbeb 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2017-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+	* configure.tgt (arc*-*-linux*): Change the default linker
+	emulation based on --with-cpu selection.
+	* NEWS: Mention new configuration option.
+
 2017-02-06  Jiong Wang  <jiong.wang@arm.com>
 
 	* testsuite/ld-elf/compress.exp: Don't print to stdout for all
diff --git a/ld/NEWS b/ld/NEWS
index d43f846..23ca25a 100644
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -2,6 +2,9 @@
 
 * Add support for the Texas Instruments PRU processor.
 
+* When configuring for arc*-*-linux* targets the default linker emulation will
+  change if --with-cpu=nps400 is used at configure time.
+
 Changes in 2.28:
 
 * The EXCLUDE_FILE linker script construct can now be applied outside of the
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 5a68083..8e34b1f 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -80,8 +80,15 @@ alpha*-*-*vms*)		targ_emul=alphavms
 arc*-*-elf*)		targ_emul=arcelf
 			targ_extra_emuls="arcelf_prof arclinux arclinux_nps arclinux_prof arcv2elf arcv2elfx"
             		;;
-arc*-*-linux*)		targ_emul=arclinux
-			targ_extra_emuls="arclinux_nps arclinux_prof arcelf arcelf_prof arcv2elf arcv2elfx"
+arc*-*-linux*)		case "${with_cpu}" in
+			nps400)	targ_emul=arclinux_nps
+				targ_extra_emuls=arclinux
+				;;
+			*)	targ_emul=arclinux
+				targ_extra_emuls=arclinux_nps
+				;;
+			esac
+			targ_extra_emuls="${targ_extra_emuls} arclinux_prof arcelf arcelf_prof arcv2elf arcv2elfx"
 			;;
 arm-epoc-pe)		targ_emul=arm_epoc_pe ;	targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 arm*-*-cegcc*)		targ_emul=arm_wince_pe ; targ_extra_ofiles="deffilep.o pe-dll.o"


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