This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] AArch64 libgloss adding specs files.
- From: Marcus Shawcroft <marcus dot shawcroft at arm dot com>
- To: newlib at sourceware dot org
- Date: Fri, 18 Jan 2013 15:50:22 +0000
- Subject: [PATCH] AArch64 libgloss adding specs files.
Hi, I've just committed the attached patch to add spec file support
for various AArch64 models.
/Marcus
2013-01-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
* aarch64/Machine.in(RDIMON_SCRIPTS):
Add aem-ve.specs and aem-validation.specs.
* aarch64/elf-aem-validation.specs: New file.
* aarch64/elf-aem-ve.specs: New file.
diff --git a/libgloss/aarch64/Makefile.in b/libgloss/aarch64/Makefile.in
index bbbafe8..a8ceb1c 100644
--- a/libgloss/aarch64/Makefile.in
+++ b/libgloss/aarch64/Makefile.in
@@ -81,7 +81,7 @@ CRT0_INSTALL = install-crt0
RDIMON_CRT0 = rdimon-crt0.o
RDIMON_BSP = librdimon.a
RDIMON_OBJS = $(patsubst %,rdimon-%,$(OBJS))
-RDIMON_SCRIPTS = rdimon.specs
+RDIMON_SCRIPTS = rdimon.specs aem-ve.specs aem-validation.specs
RDIMON_INSTALL = install-rdimon
CFLAGS = -g
diff --git a/libgloss/aarch64/elf-aem-validation.specs b/libgloss/aarch64/elf-aem-validation.specs
new file mode 100644
index 0000000..ca0c92d
--- /dev/null
+++ b/libgloss/aarch64/elf-aem-validation.specs
@@ -0,0 +1,12 @@
+# aem-ve.specs
+#
+# Spec file for AArch64 baremetal newlib, libgloss on the validation platform
+# with AngelAPI semi-hosting.
+
+%rename lib libc
+
+*libgloss:
+-lrdimon
+
+*lib:
+cpu-init/rdimon-aem-el3.o%s --start-group %(libc) %(libgloss) --end-group
diff --git a/libgloss/aarch64/elf-aem-ve.specs b/libgloss/aarch64/elf-aem-ve.specs
new file mode 100644
index 0000000..671d3c1
--- /dev/null
+++ b/libgloss/aarch64/elf-aem-ve.specs
@@ -0,0 +1,19 @@
+# aem-ve.specs
+#
+# Spec file for AArch64 baremetal newlib, libgloss on VE platform with AngelAPI
+# semi-hosting.
+#
+# This Spec file is also appropriate for the foundation model.
+
+%rename link old_link
+
+*link:
+-Ttext-segment 0x80000000 %(old_link)
+
+%rename lib libc
+
+*libgloss:
+-lrdimon
+
+*lib:
+cpu-init/rdimon-aem-el3.o%s --start-group %(libc) %(libgloss) --end-group