summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-12-04 08:42:04 +0100
committerJeff Johnston <jjohnstn@redhat.com>2020-12-14 16:10:30 -0500
commit6cc47c4c330a6468dd8a42b88f97c5aaecad3cdb (patch)
tree9e915f134376b391587cabdbeaaa0bd839c344e2
parent8199b0cc38de3553d2e86f170d7da0b64405d10c (diff)
downloadcygnal-6cc47c4c330a6468dd8a42b88f97c5aaecad3cdb.tar.gz
cygnal-6cc47c4c330a6468dd8a42b88f97c5aaecad3cdb.tar.bz2
cygnal-6cc47c4c330a6468dd8a42b88f97c5aaecad3cdb.zip
arm: Fix memchr() for Armv8-R
The Cortex-R52 processor is an Armv8-R processor with a NEON unit. This fix prevents conflicting architecture profiles A/R errors issued by the linker. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
-rw-r--r--newlib/libc/machine/arm/memchr.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/machine/arm/memchr.S b/newlib/libc/machine/arm/memchr.S
index 7c22b117e..1a4c6512c 100644
--- a/newlib/libc/machine/arm/memchr.S
+++ b/newlib/libc/machine/arm/memchr.S
@@ -79,7 +79,11 @@
@ NOTE: This ifdef MUST match the one in memchr-stub.c
#if defined (__ARM_NEON__) || defined (__ARM_NEON)
+#if __ARM_ARCH >= 8 && __ARM_ARCH_PROFILE == 'R'
+ .arch armv8-r
+#else
.arch armv7-a
+#endif
.fpu neon