diff options
author | Helge Deller <deller@gmx.de> | 2018-04-20 17:13:44 -0400 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2018-06-29 11:27:20 -0400 |
commit | 24b6c22504a27210a8377e54d24d425ae414f2c1 (patch) | |
tree | 9af797d8f5fcfb1d525fc79d115ba69279015074 | |
parent | 63ba82c0e63f1dd400d84e12f2142c2cb691aec1 (diff) |
parisc: Build kernel without -ffunction-sections
As suggested by Nick Piggin it seems we can drop the -ffunction-sections
compile flag, now that the kernel uses thin archives. Testing with 32-
and 64-bit kernel showed no difference in kernel size.
Suggested-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | arch/parisc/Makefile | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index 714284ea6cc2..5ce030266e7d 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile | |||
@@ -65,10 +65,6 @@ endif | |||
65 | # kernel. | 65 | # kernel. |
66 | cflags-y += -mdisable-fpregs | 66 | cflags-y += -mdisable-fpregs |
67 | 67 | ||
68 | # Without this, "ld -r" results in .text sections that are too big | ||
69 | # (> 0x40000) for branches to reach stubs. | ||
70 | cflags-y += -ffunction-sections | ||
71 | |||
72 | # Use long jumps instead of long branches (needed if your linker fails to | 68 | # Use long jumps instead of long branches (needed if your linker fails to |
73 | # link a too big vmlinux executable). Not enabled for building modules. | 69 | # link a too big vmlinux executable). Not enabled for building modules. |
74 | ifdef CONFIG_MLONGCALLS | 70 | ifdef CONFIG_MLONGCALLS |