From: Helge Deller <deller@gmx.de>
Date: Fri, 20 Apr 2018 21:13:44 +0000 (+0200)
Subject: parisc: Build kernel without -ffunction-sections
X-Git-Tag: v4.18-rc3~7^2
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=24b6c22504a27210a8377e54d24d425ae414f2c1;p=users%2Fjedix%2Flinux-maple.git

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

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
 # kernel.
 cflags-y	+= -mdisable-fpregs
 
-# Without this, "ld -r" results in .text sections that are too big
-# (> 0x40000) for branches to reach stubs.
-cflags-y	+= -ffunction-sections
-
 # Use long jumps instead of long branches (needed if your linker fails to
 # link a too big vmlinux executable). Not enabled for building modules.
 ifdef CONFIG_MLONGCALLS