aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-07-17 14:15:52 +0000
committerNick Clifton <nickc@redhat.com>2002-07-17 14:15:52 +0000
commitcf88bb9f09d71baa044b1bb8ed774f56839236ec (patch)
treeda383eac35d1e76029bc2bfb3ea344e254f390a0 /ld/emulparams
parent0dafd5f6a9d00407314e765ce587fbf4d58fd9e3 (diff)
downloadgdb-cf88bb9f09d71baa044b1bb8ed774f56839236ec.zip
gdb-cf88bb9f09d71baa044b1bb8ed774f56839236ec.tar.gz
gdb-cf88bb9f09d71baa044b1bb8ed774f56839236ec.tar.bz2
Add IP2k support to BFD and LD
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/elf32ip2k.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/ld/emulparams/elf32ip2k.sh b/ld/emulparams/elf32ip2k.sh
new file mode 100644
index 0000000..be2ce33
--- /dev/null
+++ b/ld/emulparams/elf32ip2k.sh
@@ -0,0 +1,19 @@
+MACHINE=
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-ip2k"
+# See also `include/elf/ip2k.h'
+DATA_ADDR=0x01000100
+TEXT_START_ADDR=0x02010000
+GPR_START_ADDR=0x1000080
+GPR_SIZE=0x7F
+GRP_MEMORY=gpr
+ARCH=ip2k
+ENTRY=__start
+EMBEDDED=yes
+ELFSIZE=32
+MAXPAGESIZE=256
+WRITABLE_RODATA=
+OTHER_RELOCATING_SECTIONS='PROVIDE (__stack = 0x01000FFF);'
+OTHER_READONLY_SECTIONS='.pram 0x2000000 : { *(.pram) } .reset 0x201FFE0 : { *(.reset) }'
+OTHER_READWRITE_SECTIONS='.gpr 0x1000080 : { *(.gpr) }'
+