aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-25 03:32:08 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-25 03:32:08 +0000
commitc361ce46c5c99957614bcb39184c98c139d7c66a (patch)
tree59b5078dc911037035f2b90cb8da523a967c613f /ld/emulparams
parentd4e5e3c330d5b2e7b6b972e03b1997a88270f703 (diff)
downloadgdb-c361ce46c5c99957614bcb39184c98c139d7c66a.zip
gdb-c361ce46c5c99957614bcb39184c98c139d7c66a.tar.gz
gdb-c361ce46c5c99957614bcb39184c98c139d7c66a.tar.bz2
* configure.in (powerpc-*-elf*): New target; use ppc-elf32.
* config/ppc-elf32.mt: New file. * emulparams/elf32ppc.sh: New file. * emultempl/ppc.em: New file. * Makefile.in (ALL_EMULATIONS): Added em_elf32ppc.o. (em_elf32ppc.c): New target; uses elf32ppc.sh, ppc.em and elf.sc. (EMULATION_OFILES): Added dependencies on ldexp.h and ldlang.h.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/.Sanitize1
-rw-r--r--ld/emulparams/elf32ppc.sh11
2 files changed, 12 insertions, 0 deletions
diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize
index 0237707..aef97ac 100644
--- a/ld/emulparams/.Sanitize
+++ b/ld/emulparams/.Sanitize
@@ -32,6 +32,7 @@ ebmon29k.sh
elf32_sparc.sh
elf64_sparc.sh
elf32mipb.sh
+elf32ppc.sh
elf_i386.sh
gld960.sh
go32.sh
diff --git a/ld/emulparams/elf32ppc.sh b/ld/emulparams/elf32ppc.sh
new file mode 100644
index 0000000..792265b
--- /dev/null
+++ b/ld/emulparams/elf32ppc.sh
@@ -0,0 +1,11 @@
+TEMPLATE_NAME=ppc
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-powerpc"
+TEXT_START_ADDR=0x0400000
+DATA_ADDR=0x10000000
+MAXPAGESIZE=0x40000
+NONPAGED_TEXT_START_ADDR=0x0400000
+OTHER_READWRITE_SECTIONS='
+ .toc . : { *(.toc) }
+'
+ARCH=powerpc