[ARC] Add new linker emulation for nps
authorGraham Markall <graham.markall@embecosm.com>
Thu, 8 Dec 2016 16:58:23 +0000 (16:58 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 10 Jan 2017 10:55:13 +0000 (10:55 +0000)
commit07ccf83cf5424d019ab091a7bac0fee26564e420
tree37eeead32cf2ae4a4720174c2ff60a4f7b4ff5f1
parent74def31dcd248441a49755721da81ca73d99c4fb
[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.
ld/ChangeLog
ld/Makefile.am
ld/Makefile.in
ld/configure.tgt
ld/emulparams/arc-nps.sh [new file with mode: 0644]
ld/emulparams/arclinux_nps.sh [new file with mode: 0644]
ld/testsuite/ld-arc/arclinux-nps.d [new file with mode: 0644]
ld/testsuite/ld-arc/arclinux-nps.s [new file with mode: 0644]