[PATCH] arm: disable FDPIC ABI
Ben Wolsieffer
ben.wolsieffer at hefring.com
Mon Aug 1 22:41:11 CEST 2022
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 <Ben.Wolsieffer at hefring.com>
---
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
More information about the U-Boot
mailing list