summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2018-05-30 11:28:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-06-12 23:34:24 +0100
commitace62c17118a0c0b14fe14a25d4897568b3fde2a (patch)
treee00cbf8f0cce72e3254c73814605d57caa007745
parentfddc539217b03106895578342f2e799d3a9bb79d (diff)
downloadpoky-ace62c17118a0c0b14fe14a25d4897568b3fde2a.tar.gz
poky-ace62c17118a0c0b14fe14a25d4897568b3fde2a.tar.bz2
poky-ace62c17118a0c0b14fe14a25d4897568b3fde2a.zip
gcc-sanitizers: don't use thumb for armv[45]
* otherwise it fails with: sanitizer_linux.s:5749: Error: lo register required -- `ldr ip,[sp],#8' @ 1538 "../../../../../../../../../work-shared/gcc-8.1.0-r0/gcc-8.1.0/libsanitizer/sanitizer_common/sanitizer_linux.cc" 1 swi 0x0 cmp r0, #0 bne 1f ldr r0, [sp, #4] ldr ip, [sp], #8 blx ip mov r7, #1 swi 0x0 1: mov r0, r0 (From OE-Core rev: a292fdf3df51d97fbb78d647cdd7c05125614305) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gcc/gcc-sanitizers_8.1.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers_8.1.bb b/meta/recipes-devtools/gcc/gcc-sanitizers_8.1.bb
index 601f666023..f3c7058114 100644
--- a/meta/recipes-devtools/gcc/gcc-sanitizers_8.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-sanitizers_8.1.bb
@@ -1,2 +1,7 @@
require recipes-devtools/gcc/gcc-${PV}.inc
require gcc-sanitizers.inc
+
+# Building with thumb enabled on armv4t armv5t fails with
+# sanitizer_linux.s:5749: Error: lo register required -- `ldr ip,[sp],#8'
+ARM_INSTRUCTION_SET_armv4 = "arm"
+ARM_INSTRUCTION_SET_armv5 = "arm"