From d3d35d957a9d0733dc51f14b5abc0bff5d3c5f3a Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Wed, 12 Mar 2014 15:12:01 +1100 Subject: [PATCH] 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 Signed-off-by: Anton Blanchard Signed-off-by: Benjamin Herrenschmidt --- Reading git-format-patch failed