Skip to content

Commit

Permalink
parisc: Build kernel without -ffunction-sections
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hdeller committed Jun 29, 2018
1 parent 63ba82c commit 24b6c22
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/parisc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24b6c22

Please sign in to comment.