From a6a4c542d316b3401f0840ac5378743191bca851 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 13 Apr 2015 14:49:28 +0200 Subject: [PATCH] break build if it would produce broken binary Add an error in known-bad case so that we don't produce broken and hard to debug binaries. Signed-off-by: Pavel Machek --- arch/arm/include/asm/u-boot.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/u-boot.h b/arch/arm/include/asm/u-boot.h index 43cc494683..ae4c21bf36 100644 --- a/arch/arm/include/asm/u-boot.h +++ b/arch/arm/include/asm/u-boot.h @@ -49,4 +49,8 @@ typedef struct bd_info { #define IH_ARCH_DEFAULT IH_ARCH_ARM64 #endif +#if defined(CONFIG_USE_PRIVATE_LIBGCC) && defined(CONFIG_SYS_THUMB_BUILD) +#error Thumb build does not work with private libgcc. +#endif + #endif /* _U_BOOT_H_ */ -- 2.25.1