Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 9226/1: disable FDPIC ABI

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>

authored by

Ben Wolsieffer and committed by
Russell King (Oracle)
3d47ff25 ee50036b

+3
+3
arch/arm/Makefile
··· 22 22 # Never generate .eh_frame 23 23 KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) 24 24 25 + # Disable FDPIC ABI 26 + KBUILD_CFLAGS += $(call cc-option,-mno-fdpic) 27 + 25 28 # This should work on most of the modern platforms 26 29 KBUILD_DEFCONFIG := multi_v7_defconfig 27 30