mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
package/gcc: disable libsanitizer on ARM Thumb classic
libsanitizer is broken for Thumb1, sanitizer_linux.cc contains
unconditional "ldr ip, [sp], #8", which causes:
....s: Assembler messages:
....s:4190: Error: lo register required -- `ldr ip,[sp],#8'
Fixes:
http://autobuild.buildroot.net/results/5e15820c5db8c4c48c1de62a0c77171aeee381ba/
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit fd17b3dd44)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
cd3b0fa07d
commit
2625ea6bf2
@@ -154,6 +154,14 @@ ifeq ($(BR2_mips)$(BR2_mipsel):$(BR2_TOOLCHAIN_GCC_AT_LEAST_12),y:y)
|
|||||||
HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer
|
HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# libsanitizer is broken for Thumb1, sanitizer_linux.cc contains unconditional
|
||||||
|
# "ldr ip, [sp], #8", which causes:
|
||||||
|
# ....s: Assembler messages:
|
||||||
|
# ....s:4190: Error: lo register required -- `ldr ip,[sp],#8'
|
||||||
|
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
||||||
|
HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer
|
||||||
|
endif
|
||||||
|
|
||||||
# The logic in libbacktrace/configure.ac to detect if __sync builtins
|
# The logic in libbacktrace/configure.ac to detect if __sync builtins
|
||||||
# are available assumes they are as soon as target_subdir is not
|
# are available assumes they are as soon as target_subdir is not
|
||||||
# empty, i.e when cross-compiling. However, some platforms do not have
|
# empty, i.e when cross-compiling. However, some platforms do not have
|
||||||
|
|||||||
Reference in New Issue
Block a user