Skip to content

Commit

Permalink
gcc-sanitizers: don't use thumb for armv[45]
Browse files Browse the repository at this point in the history
* otherwise it fails with:
  sanitizer_linux.s:5749: Error: lo register required -- `ldr ip,[sp],yoctoproject#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], yoctoproject#8
blx ip
mov r7, #1
swi 0x0
1:
mov r0, r0

(From OE-Core rev: a292fdf)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
  • Loading branch information
shr-project authored and stephanosio committed Nov 5, 2022
1 parent f62ee18 commit ddca211
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meta/recipes-devtools/gcc/gcc-sanitizers_8.1.bb
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit ddca211

Please sign in to comment.