]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/le: Avoid creatng R_PPC64_TOCSAVE relocations for modules.
authorTony Breeds <tony@bakeyournoodle.com>
Wed, 12 Mar 2014 04:12:01 +0000 (15:12 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 9 Apr 2014 02:53:44 +0000 (12:53 +1000)
commit47ca235ced47af3d4202210eed673caa8d2c3ed0
tree7b91af3c36d2e8b3d01e523f0e7f9cff9c58cdd1
parent34bb7077cd6160af93aa1bead6c17a8efff462c6
powerpc/le: Avoid creatng R_PPC64_TOCSAVE relocations for modules.

When building modules with a native le toolchain the linker will
generate R_PPC64_TOCSAVE relocations when it's safe to omit saving r2 on
a plt call.  This isn't helpful in the conext of a kernel module and the
kernel will fail to load those modules with an error like:
nf_conntrack: Unknown ADD relocation: 109

This patch tells the linker to avoid createing R_PPC64_TOCSAVE
relocations allowing modules to load.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Makefile