Date: | 2013-01-31 22:44:28 (10 years 3 months ago) |
---|---|
Author: | Helge Deller |
Commit: | ec758f98328da3eb933a25dc7a2eed01ef44d849 |
Message: | 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 <deller@gmx.de> |
Files: |
arch/parisc/Kconfig (1 diff) arch/parisc/Makefile (1 diff) |
Change Details
arch/parisc/Kconfig | ||
---|---|---|
161 | 161 | def_bool y |
162 | 162 | depends on PA8X00 || PA7200 |
163 | 163 | |
164 | config MLONGCALLS | |
165 | bool "Enable the -mlong-calls compiler option for big kernels" | |
166 | def_bool y if (!MODULES) | |
167 | depends on PA8X00 | |
168 | help | |
169 | If you configure the kernel to include many drivers built-in instead | |
170 | as modules, the kernel executable may become too big, so that the | |
171 | linker will not be able to resolve some long branches and fails to link | |
172 | your vmlinux kernel. In that case enabling this option will help you | |
173 | to overcome this limit by using the -mlong-calls compiler option. | |
174 | ||
175 | Usually you want to say N here, unless you e.g. want to build | |
176 | a kernel which includes all necessary drivers built-in and which can | |
177 | be used for TFTP booting without the need to have an initrd ramdisk. | |
178 | ||
179 | Enabling this option will probably slow down your kernel. | |
180 | ||
164 | 181 | config 64BIT |
165 | 182 | bool "64-bit kernel" |
166 | 183 | depends on PA8X00 |
arch/parisc/Makefile | ||
---|---|---|
64 | 64 | cflags-y += -ffunction-sections |
65 | 65 | endif |
66 | 66 | |
67 | # Use long jumps instead of long branches (needed if your linker fails to | |
68 | # link a too big vmlinux executable) | |
69 | cflags-$(CONFIG_MLONGCALLS) += -mlong-calls | |
70 | ||
67 | 71 | # select which processor to optimise for |
68 | 72 | cflags-$(CONFIG_PA7100) += -march=1.1 -mschedule=7100 |
69 | 73 | cflags-$(CONFIG_PA7200) += -march=1.1 -mschedule=7200 |
Branches:
ben-wpan
ben-wpan-stefan
5396a9238205f20f811ea57898980d3ca82df0b6
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9