diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2018-05-30 11:28:29 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-12 23:34:24 +0100 |
commit | ace62c17118a0c0b14fe14a25d4897568b3fde2a (patch) | |
tree | e00cbf8f0cce72e3254c73814605d57caa007745 | |
parent | fddc539217b03106895578342f2e799d3a9bb79d (diff) | |
download | poky-ace62c17118a0c0b14fe14a25d4897568b3fde2a.tar.gz |
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.bb | 5 |
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 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | 1 | require recipes-devtools/gcc/gcc-${PV}.inc |
2 | require gcc-sanitizers.inc | 2 | require gcc-sanitizers.inc |
3 | |||
4 | # Building with thumb enabled on armv4t armv5t fails with | ||
5 | # sanitizer_linux.s:5749: Error: lo register required -- `ldr ip,[sp],#8' | ||
6 | ARM_INSTRUCTION_SET_armv4 = "arm" | ||
7 | ARM_INSTRUCTION_SET_armv5 = "arm" | ||