OSDN Git Service

ARM: 9226/1: disable FDPIC ABI
authorBen Wolsieffer <ben.wolsieffer@hefring.com>
Fri, 12 Aug 2022 21:24:25 +0000 (22:24 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 31 Aug 2022 13:50:07 +0000 (14:50 +0100)
When building with an arm-*-uclinuxfdpiceabi toolchain, the FDPIC ABI is
enabled by default but should not be used to build the kernel.
Therefore, pass -mno-fdpic if supported by the compiler.

Signed-off-by: Ben Wolsieffer <ben.wolsieffer@hefring.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/Makefile

index 56f655d..44b240d 100644 (file)
@@ -22,6 +22,9 @@ GZFLAGS               :=-9
 # Never generate .eh_frame
 KBUILD_CFLAGS  += $(call cc-option,-fno-dwarf2-cfi-asm)
 
+# Disable FDPIC ABI
+KBUILD_CFLAGS  += $(call cc-option,-mno-fdpic)
+
 # This should work on most of the modern platforms
 KBUILD_DEFCONFIG := multi_v7_defconfig