]> 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)
commit36cf8ed86d639d3d448c17af69d71d02b67a3c68
treecd8ab57378addb029c980820adc0e61b0404ff43
parent7027b4df5eccf3ecc3dfa3da71dacc8a1a9cd149
parisc: disable -mlong-calls compiler option for kernel modules

CONFIG_MLONGCALLS was introduced in commit
9725c8a10b7bf408e5a566a894fdd9e690c411bb 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