From ec758f98328da3eb933a25dc7a2eed01ef44d849 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Thu, 31 Jan 2013 21:44:28 +0000 Subject: parisc: add CONFIG_MLONGCALLS option to enable linkage of huge vmlinux executables When building a 64bit kernel which includes all necessary drivers and filesystems the vmlinux kernel often gets so huge, that the linker won't be able to resolve the branch stubs. This patch overcomes this limit by providing an option to compile the kernel with the -mlong-calls compiler option. Signed-off-by: Helge Deller --- arch/parisc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/parisc/Makefile') diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index 87f64d6b5dcb..ed9a14ccd066 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile @@ -64,6 +64,10 @@ ifndef CONFIG_FUNCTION_TRACER cflags-y += -ffunction-sections endif +# Use long jumps instead of long branches (needed if your linker fails to +# link a too big vmlinux executable) +cflags-$(CONFIG_MLONGCALLS) += -mlong-calls + # select which processor to optimise for cflags-$(CONFIG_PA7100) += -march=1.1 -mschedule=7100 cflags-$(CONFIG_PA7200) += -march=1.1 -mschedule=7200 -- cgit v1.2.3