diff options
author | Ben Wolsieffer <ben.wolsieffer@hefring.com> | 2022-08-12 23:24:25 +0200 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-08-31 15:50:07 +0200 |
commit | 3d47ff25685e76c24565779681f652b7ff2b10f0 (patch) | |
tree | 9e4c8394b40c3f15e52049529489ad6d53af75be /arch | |
parent | ARM: 9221/1: traps: print un-hashed user pc on undefined instruction (diff) | |
download | linux-3d47ff25685e76c24565779681f652b7ff2b10f0.tar.xz linux-3d47ff25685e76c24565779681f652b7ff2b10f0.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | arch/arm/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 56f655deebb1..44b240d6ed30 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -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 |