Ping. Thanks,
On 2019年03月06日 12:24, mingli...@windriver.com wrote:
From: Mingli Yu <mingli...@windriver.com> Fix the below build issue for gcc-sanitizers when both -mthumb and -fno-omit-frame-pointer configured for arm. | ../../../../libsanitizer/sanitizer_common/sanitizer_linux.cc: In function 'sanitizer::uptr sanitizer::internal_clone(int (*)(void*), void*, int, void*, int*, void*, int*)': | ../../../../libsanitizer/sanitizer_common/sanitizer_linux.cc:1540:1: error: r7 cannot be used in asm here } Reference: https://reviews.llvm.org/D50180 Signed-off-by: Mingli Yu <mingli...@windriver.com> --- meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb b/meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb index f3c7058..2f89c86 100644 --- a/meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb +++ b/meta/recipes-devtools/gcc/gcc-sanitizers_8.2.bb @@ -5,3 +5,4 @@ require gcc-sanitizers.inc # sanitizer_linux.s:5749: Error: lo register required -- `ldr ip,[sp],#8' ARM_INSTRUCTION_SET_armv4 = "arm" ARM_INSTRUCTION_SET_armv5 = "arm" +TARGET_CFLAGS_remove_arm = "${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fno-omit-frame-pointer', '', d)}"
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core