aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorChung-Lin Tang <mentor.com>2013-11-18 06:57:28 -0800
committerChung-Lin Tang <mentor.com>2013-11-18 06:57:28 -0800
commitbaa2af86d4ca17a82a02b581ab5150587ef955f8 (patch)
treed948a7a72eff889de82984c9efd14f95e5becc7c /ld/emulparams
parentd0b5971ae7b8709c28a7a1638413426d8749d976 (diff)
downloadgdb-baa2af86d4ca17a82a02b581ab5150587ef955f8.zip
gdb-baa2af86d4ca17a82a02b581ab5150587ef955f8.tar.gz
gdb-baa2af86d4ca17a82a02b581ab5150587ef955f8.tar.bz2
Separate emulations for nios2-elf and nios2-linux.
2013-11-18 Chung-Lin Tang <cltang@codesourcery.com> * emulparams/nios2linux.sh: New emulation file. * configure.tgt: Add nios2*-*-linux* emulation case. * Makefile.am (enios2linux.c): New emulation entry. * Makefile.in: Regenerate.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/nios2linux.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/ld/emulparams/nios2linux.sh b/ld/emulparams/nios2linux.sh
new file mode 100644
index 0000000..aa409a9
--- /dev/null
+++ b/ld/emulparams/nios2linux.sh
@@ -0,0 +1,20 @@
+SCRIPT_NAME=elf
+TEMPLATE_NAME=elf32
+EXTRA_EM_FILE=
+OUTPUT_FORMAT="elf32-littlenios2"
+LITTLE_OUTPUT_FORMAT="elf32-littlenios2"
+BIG_OUTPUT_FORMAT="elf32-bignios2"
+TEXT_START_ADDR=0x2000
+OTHER_GOT_SYMBOLS='
+ _gp = ALIGN(16) + 0x7ff0;
+ PROVIDE(gp = _gp);
+'
+ARCH=nios2
+MACHINE=
+MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
+ENTRY=_start
+NOP=0x0001883a
+
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes