aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.tgt
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2017-01-26 10:33:23 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2017-02-08 23:47:43 +0000
commitd7488716eef3747cc99b0e2b50743a48f59389ee (patch)
treece167369386fa931e90a4462a43d1a88a06cad5c /ld/configure.tgt
parenta474bd8eeea16b2b6aa7089dedb142d86c22a4d7 (diff)
downloadgdb-d7488716eef3747cc99b0e2b50743a48f59389ee.zip
gdb-d7488716eef3747cc99b0e2b50743a48f59389ee.tar.gz
gdb-d7488716eef3747cc99b0e2b50743a48f59389ee.tar.bz2
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.
Diffstat (limited to 'ld/configure.tgt')
-rw-r--r--ld/configure.tgt11
1 files changed, 9 insertions, 2 deletions
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"