[Patch ARM] Add further baremetal target specs file.

Marcus Shawcroft marcus.shawcroft@arm.com
Fri Sep 27 14:21:00 GMT 2013


Hi,

Further to Ramana's recent patch:
https://sourceware.org/ml/newlib/2013/msg00712.html

This patch provides a specs file appropriate for the validation flavour 
of the AEM model.

OK?

/Marcus

2013-09-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>

        * arm/Makefile.in (RDIMON_SCRIPTS): Add aprofile validation.specs.
        * arm/elf-aprofile-validation.specs: New.
-------------- next part --------------
diff --git a/libgloss/arm/Makefile.in b/libgloss/arm/Makefile.in
index 998ace5..8806277 100644
--- a/libgloss/arm/Makefile.in
+++ b/libgloss/arm/Makefile.in
@@ -75,7 +75,7 @@ RDPMON_INSTALL	= install-rdpmon
 RDIMON_CRT0	= rdimon-crt0.o
 RDIMON_BSP	= librdimon.a
 RDIMON_OBJS	= $(patsubst %,rdimon-%,$(RDPMON_OBJS))
-RDIMON_SCRIPTS	= rdimon.specs aprofile-ve.specs
+RDIMON_SCRIPTS	= rdimon.specs aprofile-validation.specs aprofile-ve.specs
 RDIMON_INSTALL	= install-rdimon
 
 CFLAGS		= -g
diff --git a/libgloss/arm/elf-aprofile-validation.specs b/libgloss/arm/elf-aprofile-validation.specs
new file mode 100644
index 0000000..4e645d3
--- /dev/null
+++ b/libgloss/arm/elf-aprofile-validation.specs
@@ -0,0 +1,22 @@
+# aem-validation.specs
+#
+# Spec file for AArch32 A profile baremetal newlib, libgloss on VALIDATION platform with AngelAPI
+# semi-hosting.
+#
+# This Spec file is also appropriate for the foundation model.
+
+%rename link old_link
+
+*link:
+--defsym=_rdimon_vector_base=0x00000000 -Ttext-segment=0x00008000 %(old_link)
+
+%rename lib libc
+
+*libgloss:
+-lrdimon
+
+*lib:
+cpu-init/rdimon-aem.o%s --start-group %(libc) %(libgloss) --end-group
+
+*startfile:
+crti%O%s crtbegin%O%s %{!pg:rdimon-crt0%O%s} %{pg:rdimon-crt0%O%s}


More information about the Newlib mailing list