Skip to content

Commit 24b6c22

Browse files
committed
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>
1 parent 63ba82c commit 24b6c22

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/parisc/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ endif
6565
# kernel.
6666
cflags-y += -mdisable-fpregs
6767

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-
7268
# Use long jumps instead of long branches (needed if your linker fails to
7369
# link a too big vmlinux executable). Not enabled for building modules.
7470
ifdef CONFIG_MLONGCALLS

0 commit comments

Comments
 (0)