aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.tgt
diff options
context:
space:
mode:
authorGraham Markall <graham.markall@embecosm.com>2016-12-08 16:58:23 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2017-01-10 10:55:13 +0000
commit07ccf83cf5424d019ab091a7bac0fee26564e420 (patch)
tree37eeead32cf2ae4a4720174c2ff60a4f7b4ff5f1 /ld/configure.tgt
parent74def31dcd248441a49755721da81ca73d99c4fb (diff)
downloadbinutils-07ccf83cf5424d019ab091a7bac0fee26564e420.zip
binutils-07ccf83cf5424d019ab091a7bac0fee26564e420.tar.gz
binutils-07ccf83cf5424d019ab091a7bac0fee26564e420.tar.bz2
[ARC] Add new linker emulation for nps
The arc700 nps variant uses some specific named sections to facilitate its CMEM based instructions, which operate on memory regions fixed at specific addresses. This commit adds the arclinux_nps emulation, which is based on the arclinux emulation. The new emulation uses the OTHER_SECTIONS variable in the emulation parameters script to provide symbols mapping to various locations in the CMEM space on nps. The accompanying test ensures that all symbols are provided at the correct address in the linker script. ld/ChangeLog: * Makefile.am: Add earclinux_nps.c target and add to ALL_EMULATION_SOURCES. * Makefile.in: Likewise, regenerated. * configure.tgt: Add arclinux_nps as an extra emulation for arc*-*-elf* and arc*-*-linux*. * emulparams/arc-nps.sh: New file. * emulparams/arclinux_nps.sh: New file. * testsuite/ld-arc/arclinux-nps.d, * testsuite/ld-arc/arclinux-nps.s: New test.
Diffstat (limited to 'ld/configure.tgt')
-rw-r--r--ld/configure.tgt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 8f01b51..7eb53ce 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -78,10 +78,10 @@ alpha*-*-openbsd*) targ_emul=elf64alpha ;;
alpha*-*-*vms*) targ_emul=alphavms
;;
arc*-*-elf*) targ_emul=arcelf
- targ_extra_emuls="arcelf_prof arclinux arclinux_prof arcv2elf arcv2elfx"
+ targ_extra_emuls="arcelf_prof arclinux arclinux_nps arclinux_prof arcv2elf arcv2elfx"
;;
arc*-*-linux*) targ_emul=arclinux
- targ_extra_emuls="arclinux_prof arcelf arcelf_prof arcv2elf arcv2elfx"
+ targ_extra_emuls="arclinux_nps 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"