When building with an arm-*-uclinuxfdpiceabi toolchain, the FDPIC ABI is enabled by default but should not be used to build U-Boot. Therefore, pass -mno-fdpic if supported by the compiler.
Signed-off-by: Ben Wolsieffer <[email protected]> --- arch/arm/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 85c23bcf77..cdc32ea790 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -32,6 +32,9 @@ else arch-y += -D__LINUX_ARM_ARCH__=$(CONFIG_SYS_ARM_ARCH) endif +# Disable FDPIC ABI +arch-y += $(call cc-option, -mno-fdpic) + # Evaluate arch cc-option calls now arch-y := $(arch-y) -- 2.37.0

