From 57679b5e610e488cc6c25b259331cb25d412c771 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Tue, 5 Jun 2018 16:38:30 -0700 Subject: [PATCH] Disable context functions for Thumb They're written in ARM dialect, and `ldmia r14, {r14, pc}` is not accepted in T2 encoding. GCC8 changed the list of multilibs for arm-*, which now includes a variant with CPU that supports T2 but not A1 encoding. Signed-off-by: Alexey Neyman --- scripts/build/arch/arm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build/arch/arm.sh b/scripts/build/arch/arm.sh index 7433c926..4873df1a 100644 --- a/scripts/build/arch/arm.sh +++ b/scripts/build/arch/arm.sh @@ -96,6 +96,7 @@ CT_DoArchUClibcCflags() { case "${f}" in -mthumb) CT_KconfigEnableOption "COMPILE_IN_THUMB_MODE" "${cfg}" + CT_KconfigDisableOption "UCLIBC_HAS_CONTEXT_FUNCS" "${cfg}" ;; -marm) CT_KconfigDisableOption "COMPILE_IN_THUMB_MODE" "${cfg}"