aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2002-04-30 17:49:01 +0000
committerMark Mitchell <mark@codesourcery.com>2002-04-30 17:49:01 +0000
commit94349e12d27695a9b218471e3ef01ad66db479b2 (patch)
tree513f74cfdc7b9e8d3b3a2bc7b411ad874913a88d /ld/emulparams
parent9b2b7d69419e84dfb634e4bded25b0d108f21cc4 (diff)
downloadgdb-94349e12d27695a9b218471e3ef01ad66db479b2.zip
gdb-94349e12d27695a9b218471e3ef01ad66db479b2.tar.gz
gdb-94349e12d27695a9b218471e3ef01ad66db479b2.tar.bz2
* Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
(eelf32ppcwindiss.c): New target. * Makefile.in: Regenerated. * configure.tgt: Add support for powerpc-*-windiss. * emulparams/elf32ppcwindiss.sh: New file.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/elf32ppcwindiss.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/ld/emulparams/elf32ppcwindiss.sh b/ld/emulparams/elf32ppcwindiss.sh
new file mode 100644
index 0000000..c0e6138
--- /dev/null
+++ b/ld/emulparams/elf32ppcwindiss.sh
@@ -0,0 +1,23 @@
+TEMPLATE_NAME=elf32
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-powerpc"
+ARCH=powerpc
+MACHINE=
+EMBEDDED=yes
+MAXPAGESIZE=0x10000
+
+# The data below is taken from the windiss.dld linker script that comes with
+# the Diab linker.
+TEXT_START_ADDR=0x100000
+DATA_START_SYMBOLS='__DATA_ROM = .; __DATA_RAM = .;'
+EXECUTABLE_SYMBOLS='__HEAP_START = .; __SP_INIT = 0x800000; __SP_END = __SP_INIT - 0x20000; __HEAP_END = __SP_END; __DATA_END = _edata; __BSS_START = __bss_start; __BSS_END = _end; __HEAP_START = _end;'
+
+# The Diab tools use a different init/fini convention. Initialization code
+# is place in sections named ".init$NN". These sections are then concatenated
+# into the .init section. It is important that .init$00 be first and .init$99
+# be last. The other sections should be sorted, but the current linker script
+# parse does not seem to allow that with the SORT keyword in this context.
+INIT_START='*(.init$00); *(.init$0[1-9]); *(.init$[1-8][0-9]); *(.init$9[0-8])'
+INIT_END='*(.init$99)'
+FINI_START='*(.fini$00); *(.fini$0[1-9]); *(.fini$[1-8][0-9]); *(.fini$9[0-8])'
+FINI_END='*(.fini$99)'