Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf71130d authored by Helge Deller's avatar Helge Deller
Browse files

parisc: disable -mlong-calls compiler option for kernel modules



CONFIG_MLONGCALLS was introduced in commit
ec758f98 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: default avatarHelge Deller <deller@gmx.de>
parent 0f28b628
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -65,8 +65,10 @@ ifndef CONFIG_FUNCTION_TRACER
endif
endif


# Use long jumps instead of long branches (needed if your linker fails to
# Use long jumps instead of long branches (needed if your linker fails to
# link a too big vmlinux executable)
# link a too big vmlinux executable). Not enabled for building modules.
cflags-$(CONFIG_MLONGCALLS)	+= -mlong-calls
ifdef CONFIG_MLONGCALLS
KBUILD_CFLAGS_KERNEL += -mlong-calls
endif


# select which processor to optimise for
# select which processor to optimise for
cflags-$(CONFIG_PA7100)		+= -march=1.1 -mschedule=7100
cflags-$(CONFIG_PA7100)		+= -march=1.1 -mschedule=7100