aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-07-10 04:45:16 +0000
committerAlexandre Oliva <aoliva@redhat.com>2003-07-10 04:45:16 +0000
commit4a096548a65ba8ef330a8baa388fb2c09e873a2a (patch)
treec05a8b398971c4acfda204054089e4b10c8737d7 /ld
parent2ce28d43c4144c41b34872acf04c472568e65fd8 (diff)
downloadgdb-4a096548a65ba8ef330a8baa388fb2c09e873a2a.zip
gdb-4a096548a65ba8ef330a8baa388fb2c09e873a2a.tar.gz
gdb-4a096548a65ba8ef330a8baa388fb2c09e873a2a.tar.bz2
2001-08-22 Alexandre Oliva <aoliva@redhat.com>
* emulparams/elf32am33lin.sh: Adjust to match kernel parameters. 2001-05-09 Alexandre Oliva <aoliva@redhat.com> * configure.host (am33_2.0-*-linux*): Added. * configure.tgt (am33_2.0-*-linux*): Likewise. * emulparams/elf32am33lin.sh: New. * Makefile.am (eelf32am33lin.c): New rule. * Makefile.in: Rebuilt.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog11
-rw-r--r--ld/Makefile.am3
-rw-r--r--ld/Makefile.in3
-rw-r--r--ld/configure.host5
-rw-r--r--ld/configure.tgt1
-rw-r--r--ld/emulparams/elf32am33lin.sh11
6 files changed, 34 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 3b21e21..8c12846 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,14 @@
+2003-07-10 Alexandre Oliva <aoliva@redhat.com>
+
+ 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
+ * emulparams/elf32am33lin.sh: Adjust to match kernel parameters.
+ 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
+ * configure.host (am33_2.0-*-linux*): Added.
+ * configure.tgt (am33_2.0-*-linux*): Likewise.
+ * emulparams/elf32am33lin.sh: New.
+ * Makefile.am (eelf32am33lin.c): New rule.
+ * Makefile.in: Rebuilt.
+
2003-07-09 Alexandre Oliva <aoliva@redhat.com>
2001-04-17 Alexandre Oliva <aoliva@redhat.com>
diff --git a/ld/Makefile.am b/ld/Makefile.am
index 3f0a721..f75a115 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -607,6 +607,9 @@ eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32xstormy16 "$(tdir_xstormy16)"
+eelf32am33lin.c: $(srcdir)/emulparams/elf32am33lin.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} elf32am33lin "$(tdir_mn10300)"
eelf32vax.c: $(srcdir)/emulparams/elf32vax.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32vax "$(tdir_elf32vax)"
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 71e03a8..6057ea0 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -1333,6 +1333,9 @@ eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32xstormy16 "$(tdir_xstormy16)"
+eelf32am33lin.c: $(srcdir)/emulparams/elf32am33lin.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} elf32am33lin "$(tdir_mn10300)"
eelf32vax.c: $(srcdir)/emulparams/elf32vax.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32vax "$(tdir_elf32vax)"
diff --git a/ld/configure.host b/ld/configure.host
index c11b13b..ce7f6be 100644
--- a/ld/configure.host
+++ b/ld/configure.host
@@ -80,6 +80,11 @@ case "${host}" in
# No further tweaking needed
;;
+am33_2.0-*-linux*)
+ HOSTING_CRT0='-dynamic-linker `fgrep ld-linux.so \`${CC} --print-file-name=specs\` | sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/ld-linux.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`'
+ HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L`dirname \`${CC} --print-file-name=libc.so\`` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`'
+ ;;
+
arm*-*-linux-gnu*)
HOSTING_CRT0='-p '`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]*\*,ld-linux,g"`
;;
diff --git a/ld/configure.tgt b/ld/configure.tgt
index 8a6fbad..bed886a 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -16,6 +16,7 @@ targ_extra_emuls=
targ_extra_ofiles=
case "${targ}" in
+am33_2.0-*-linux*) targ_emul=elf32am33lin ;;
arm-epoc-pe) targ_emul=arm_epoc_pe ;
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
arm-*-wince) targ_emul=armpe ;
diff --git a/ld/emulparams/elf32am33lin.sh b/ld/emulparams/elf32am33lin.sh
new file mode 100644
index 0000000..f8b3a89
--- /dev/null
+++ b/ld/emulparams/elf32am33lin.sh
@@ -0,0 +1,11 @@
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-am33lin"
+TEXT_START_ADDR=0x8000000
+MAXPAGESIZE=0x1000
+NONPAGED_TEXT_START_ADDR=0x8000000
+ARCH=mn10300
+MACHINE=
+NOP=0xcbcb
+TEMPLATE_NAME=elf32
+GENERATE_SHLIB_SCRIPT=yes
+