u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: disable FDPIC ABI
@ 2022-08-01 20:41 Ben Wolsieffer
  0 siblings, 0 replies; only message in thread
From: Ben Wolsieffer @ 2022-08-01 20:41 UTC (permalink / raw)
  Cc: Ben Wolsieffer, Mark Kettenis, Marek Vasut, Ye Li, Simon Glass,
	Peng Fan, Jim Liu, u-boot

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@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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-02  2:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-01 20:41 [PATCH] arm: disable FDPIC ABI Ben Wolsieffer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).