]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: disable -mlong-calls compiler option for kernel modules
authorHelge Deller <deller@gmx.de>
Tue, 23 Apr 2013 19:29:03 +0000 (21:29 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 25 Apr 2013 20:36:50 +0000 (22:36 +0200)
commite0971387c004a6f64604abe37ef11e7d86b655c2
treecd8ab57378addb029c980820adc0e61b0404ff43
parenta15b68ea192343fe3472f92bf9cc2a85183377e3
parisc: disable -mlong-calls compiler option for kernel modules

CONFIG_MLONGCALLS was introduced in commit
49eeec0bd507215c4ce3162be075993be84d1bd7 to overcome linker issues when linking
huge linux kernels, e.g. with many modules linked in.

But in the kernel module loader there is no support yet for the new relocation
types, which is why modules built with -mlong-calls can't be loaded.
Furthermore, for modules long calls are not really necessary, since we already
use stub sections which resolve long distance calls.

So, let's just disable this compiler option when compiling kernel modules.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/Makefile