Date: | 2013-04-23 21:29:03 (10 years 1 month ago) |
---|---|
Author: | Helge Deller |
Commit: | cf71130d630d773ef1861adbd8a034d3ac806f3e |
Message: | parisc: disable -mlong-calls compiler option for kernel modules CONFIG_MLONGCALLS was introduced in commit ec758f98328da3eb933a25dc7a2eed01ef44d849 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> |
Files: |
arch/parisc/Makefile (1 diff) |
Change Details
arch/parisc/Makefile | ||
---|---|---|
65 | 65 | endif |
66 | 66 | |
67 | 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 | |
68 | # link a too big vmlinux executable). Not enabled for building modules. | |
69 | ifdef CONFIG_MLONGCALLS | |
70 | KBUILD_CFLAGS_KERNEL += -mlong-calls | |
71 | endif | |
70 | 72 | |
71 | 73 | # select which processor to optimise for |
72 | 74 | cflags-$(CONFIG_PA7100) += -march=1.1 -mschedule=7100 |
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