diff options
author | Alex Coplan via Newlib <newlib@sourceware.org> | 2020-09-29 19:27:18 +0300 |
---|---|---|
committer | Richard Earnshaw <rearnsha@arm.com> | 2020-09-30 13:08:46 +0300 |
commit | 63a901705ee7e720820539c8732caeeb970f77e4 (patch) | |
tree | 831aed471b326fa07f84f4f406ac3d8e4cd04868 /libgloss/aarch64/elf-aem-v8-r.specs | |
parent | c5bdf60ac46401a51a7e974333d9622966e22d67 (diff) |
libgloss: aarch64: Add support for Armv8-R AArch64
This patch adds support for Armv8-R AArch64.
Armv8-R AArch64 has no EL3, so we don't set vbar_el3, and adjust the
code to set up the MPU for Armv8-R. So build a different flavour of the
startup code to support that.
We also add a specs file that uses this alternative startup code which
can be used with Armv8-R AArch64 models.
Diffstat (limited to 'libgloss/aarch64/elf-aem-v8-r.specs')
-rw-r--r-- | libgloss/aarch64/elf-aem-v8-r.specs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libgloss/aarch64/elf-aem-v8-r.specs b/libgloss/aarch64/elf-aem-v8-r.specs new file mode 100644 index 000000000..4daeffd11 --- /dev/null +++ b/libgloss/aarch64/elf-aem-v8-r.specs @@ -0,0 +1,20 @@ +# elf-aem-v8-r.specs +# +# Spec file for AArch64 baremetal newlib, libgloss on Armv8-R with version 2 of +# AngelAPI semi-hosting. + +%rename link old_link + +*link: +-Ttext-segment 0x10000 %(old_link) + +%rename lib libc + +*libgloss: +-lrdimon + +*lib: +cpu-init/rdimon-aem-v8-r.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} |