diff options
author | Helge Deller <deller@gmx.de> | 2013-01-31 16:44:28 -0500 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-02-20 16:46:57 -0500 |
commit | ec758f98328da3eb933a25dc7a2eed01ef44d849 (patch) | |
tree | 9c6e20e3926fc8eabdca18b7b6ce54908dff8c81 /arch/parisc/Kconfig | |
parent | 1c4c6597b67f9986a09b34deb337a8b14f4adf3a (diff) |
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>
Diffstat (limited to 'arch/parisc/Kconfig')
-rw-r--r-- | arch/parisc/Kconfig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig index b77feffbadea..3df1c35a217a 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig | |||
@@ -161,6 +161,23 @@ config PREFETCH | |||
161 | def_bool y | 161 | def_bool y |
162 | depends on PA8X00 || PA7200 | 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 | config 64BIT | 181 | config 64BIT |
165 | bool "64-bit kernel" | 182 | bool "64-bit kernel" |
166 | depends on PA8X00 | 183 | depends on PA8X00 |