aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1996-09-30 19:18:04 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1996-09-30 19:18:04 +0000
commitb02d4da4fe44e0916764313becbedf096eb80e53 (patch)
tree910a1f4ab9434de29fa74b8774f035a6867a5da4 /ld
parent79e9dc201077ba2cae84f14cc2d049bd6d99a23d (diff)
downloadgdb-b02d4da4fe44e0916764313becbedf096eb80e53.zip
gdb-b02d4da4fe44e0916764313becbedf096eb80e53.tar.gz
gdb-b02d4da4fe44e0916764313becbedf096eb80e53.tar.bz2
m32r support
Diffstat (limited to 'ld')
-rw-r--r--ld/emulparams/.Sanitize8
-rw-r--r--ld/emulparams/m32relf.sh10
2 files changed, 18 insertions, 0 deletions
diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize
index 52bc53e..6723bcc 100644
--- a/ld/emulparams/.Sanitize
+++ b/ld/emulparams/.Sanitize
@@ -31,6 +31,14 @@ else
lose_these_too="${d10v_files} ${lose_these_too}"
fi
+m32r_files="m32relf.sh"
+
+if ( echo $* | grep keep\-m32r > /dev/null ) ; then
+ keep_these_too="${m32r_files} ${keep_these_too}"
+else
+ lose_these_too="${m32r_files} ${lose_these_too}"
+fi
+
v850_files="v850.sh"
if ( echo $* | grep keep\-v850 > /dev/null ) ; then
diff --git a/ld/emulparams/m32relf.sh b/ld/emulparams/m32relf.sh
new file mode 100644
index 0000000..d30fbc4
--- /dev/null
+++ b/ld/emulparams/m32relf.sh
@@ -0,0 +1,10 @@
+MACHINE=
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-m32r"
+TEXT_START_ADDR=0x0
+ARCH=m32r
+MAXPAGESIZE=32
+
+# Hmmm, there's got to be a better way. This sets the stack to the
+# top of the simulator memory (currently 1M).
+OTHER_RELOCATING_SECTIONS='.stack 0x100000 : { _stack = .; *(.stack) }'