]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Allow building 64-bit kernel without -mlong-calls compiler option
authorHelge Deller <deller@gmx.de>
Tue, 14 May 2019 19:40:53 +0000 (21:40 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 20 May 2019 08:51:39 +0000 (10:51 +0200)
commit5dfdad36179adda4264b9f02ba670aed452a8090
treeeb31041482e465d1cf084d71123b0afa9aeab452
parente7e9eddd57bfc4b0ca9c2fc2de67e02346b95695
parisc: Allow building 64-bit kernel without -mlong-calls compiler option

A 64-bit kernel built without CONFIG_MLONGCALLS (-mlong-calls compiler
option) usually fails to link because of unreachable functions.  Try to
work around that linking issue by moving the *.init and *.exit text
segments closer to the main text segment. With that change those
segments now don't get freed at runtime any longer, but since we in most
cases run with huge-page enabled, we ignore the lost memory in
preference of better performance.

This change will not guarantee that every kernel config will now
sucessfully build with short calls and without linking issues.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/Kconfig
arch/parisc/kernel/vmlinux.lds.S