aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2014-07-27 08:51:20 -0400
committerAnthony Green <green@moxielogic.com>2014-07-27 08:51:20 -0400
commit48494700d58ee0dc781d288191679072cbaf9d16 (patch)
treee08d09f8663a2c6afcdb3cf783b310b79461fc88 /ld
parente76c5d173bbf7137555919dd136004a7c0118af7 (diff)
downloadgdb-48494700d58ee0dc781d288191679072cbaf9d16.zip
gdb-48494700d58ee0dc781d288191679072cbaf9d16.tar.gz
gdb-48494700d58ee0dc781d288191679072cbaf9d16.tar.bz2
Add moxiebox target
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog8
-rw-r--r--ld/Makefile.am4
-rw-r--r--ld/Makefile.in5
-rw-r--r--ld/configure.tgt2
-rw-r--r--ld/emulparams/moxiebox.sh9
5 files changed, 28 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 9354e64..e6ed34c 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,11 @@
+2014-07-27 Anthony Green <green@moxielogic.com>
+
+ * Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
+ (emoxiebox.c): Build.
+ * configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
+ * emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
+ * Makefile.in: Rebuilt.
+
2014-07-17 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
* emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
diff --git a/ld/Makefile.am b/ld/Makefile.am
index 8e8ae20..9575f1f 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -247,6 +247,7 @@ ALL_EMULATION_SOURCES = \
eelf32microblazeel.c \
eelf32microblaze.c \
eelf32moxie.c \
+ emoxiebox.c \
eelf32mt.c \
eelf32or1k.c \
eelf32or1k_linux.c \
@@ -1160,6 +1161,9 @@ eelf32mipswindiss.c: $(srcdir)/emulparams/elf32mipswindiss.sh $(ELF_DEPS) \
eelf32moxie.c: $(srcdir)/emulparams/elf32moxie.sh \
$(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+emoxiebox.c: $(srcdir)/emulparams/moxiebox.sh \
+ $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+
eelf32mt.c: $(srcdir)/emulparams/elf32mt.sh \
$(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 971dc5f..f89eaf9 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -555,6 +555,7 @@ ALL_EMULATION_SOURCES = \
eelf32microblazeel.c \
eelf32microblaze.c \
eelf32moxie.c \
+ emoxiebox.c \
eelf32mt.c \
eelf32or1k.c \
eelf32or1k_linux.c \
@@ -1173,6 +1174,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32microblazeel.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32mipswindiss.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32moxie.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/emoxiebox.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32mt.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32or1k.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eelf32or1k_linux.Po@am__quote@
@@ -2600,6 +2602,9 @@ eelf32mipswindiss.c: $(srcdir)/emulparams/elf32mipswindiss.sh $(ELF_DEPS) \
eelf32moxie.c: $(srcdir)/emulparams/elf32moxie.sh \
$(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+emoxiebox.c: $(srcdir)/emulparams/moxiebox.sh \
+ $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+
eelf32mt.c: $(srcdir)/emulparams/elf32mt.sh \
$(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
diff --git a/ld/configure.tgt b/ld/configure.tgt
index e74e9be..33fb378 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -188,6 +188,8 @@ fr30-*-*) targ_emul=elf32fr30
frv-*-*linux*) targ_emul=elf32frvfd ;;
frv-*-*) targ_emul=elf32frv ; targ_extra_emuls="elf32frvfd"
;;
+moxie-*-moxiebox*) targ_emul=moxiebox
+ ;;
moxie-*-*) targ_emul=elf32moxie
;;
h8300-*-hms* | h8300-*-coff* | h8300-*-rtemscoff*)
diff --git a/ld/emulparams/moxiebox.sh b/ld/emulparams/moxiebox.sh
new file mode 100644
index 0000000..99b530a
--- /dev/null
+++ b/ld/emulparams/moxiebox.sh
@@ -0,0 +1,9 @@
+SCRIPT_NAME=elf
+TEMPLATE_NAME=generic
+EXTRA_EM_FILE=genelf
+OUTPUT_FORMAT="elf32-littlemoxie"
+TEXT_START_ADDR=0x1000
+MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+ARCH=moxie
+EMBEDDED=yes
+STACK_ADDR=0x400000