|
@@ -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
|