aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-03-02 10:33:08 +0000
committerNick Clifton <nickc@redhat.com>2009-03-02 10:33:08 +0000
commitc3b7224ae49a815ca1e60d058acc980530832881 (patch)
tree5c6fbdaaf1f119828e423512f1b9d8431894596c /ld/emulparams
parent9af17804e939a7d07adb86d8c16992e4c92b46ff (diff)
downloadgdb-c3b7224ae49a815ca1e60d058acc980530832881.zip
gdb-c3b7224ae49a815ca1e60d058acc980530832881.tar.gz
gdb-c3b7224ae49a815ca1e60d058acc980530832881.tar.bz2
Add support for Score7 architecture.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/scoreelf.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/ld/emulparams/scoreelf.sh b/ld/emulparams/scoreelf.sh
index dfb5aca..3a7ed31 100644
--- a/ld/emulparams/scoreelf.sh
+++ b/ld/emulparams/scoreelf.sh
@@ -1,6 +1,7 @@
MACHINE=
SCRIPT_NAME=elf
TEMPLATE_NAME=elf32
+EXTRA_EM_FILE=scoreelf
OUTPUT_FORMAT="elf32-bigscore"
BIG_OUTPUT_FORMAT="elf32-bigscore"
LITTLE_OUTPUT_FORMAT="elf32-littlescore"
@@ -8,10 +9,8 @@ NO_RELA_RELOCS=yes
GROUP="-lm -lc -lglsim -lgcc -lstdc++"
TEXT_START_ADDR=0x00000000
-case ${LD_FLAG} in
- n|N) TEXT_START_ADDR=0x0400000 ;;
-esac
MAXPAGESIZE=256
+NONPAGED_TEXT_START_ADDR=0x0400000
SHLIB_TEXT_START_ADDR=0x5ffe0000
OTHER_GOT_SYMBOLS='
_gp = ALIGN(16) + 0x3ff0;
@@ -27,7 +26,15 @@ OTHER_BSS_SYMBOLS='
# This sets the stack to the top of the simulator memory (2^19 bytes).
STACK_ADDR=0x8000000
-ARCH=score
+SCORE_NAME=${EMULATION_NAME}
+if [ "${SCORE_NAME}" = "score3_elf" ] ; then
+ARCH=score3
+fi
+
+if [ "${SCORE_NAME}" = "score7_elf" ] ; then
+ARCH=score7
+fi
+
MACHINE=
ENTRY=_start
EMBEDDED=yes