summaryrefslogtreecommitdiffstats
path: root/ppc64le_module_fix.patch
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2014-04-11 08:39:57 -0400
committerJosh Boyer <jwboyer@redhat.com>2014-04-11 08:39:57 -0400
commit84c4ae58726420912239f781bf5e6303b634a142 (patch)
tree47b21ea7d4dc1c721882a543ef4f1fb6b92c4d72 /ppc64le_module_fix.patch
parent2ed67326d8900c168f4c199e2a4d4191563259f0 (diff)
downloadkernel-84c4ae58726420912239f781bf5e6303b634a142.tar.gz
kernel-84c4ae58726420912239f781bf5e6303b634a142.tar.xz
kernel-84c4ae58726420912239f781bf5e6303b634a142.zip
Linux v3.14-12376-g4ba85265790b
Diffstat (limited to 'ppc64le_module_fix.patch')
-rw-r--r--ppc64le_module_fix.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/ppc64le_module_fix.patch b/ppc64le_module_fix.patch
deleted file mode 100644
index 77e6f55eb..000000000
--- a/ppc64le_module_fix.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 414794ae6a59c38f6e5793ad50df97cba3dda4e3 Mon Sep 17 00:00:00 2001
-From: Tony Breeds <tony@bakeyournoodle.com>
-Date: Thu, 30 Jan 2014 19:58:55 +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 <tony@bakeyournoodle.com>
----
- arch/powerpc/Makefile | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
-index 0f4344e..fff3945 100644
---- a/arch/powerpc/Makefile
-+++ b/arch/powerpc/Makefile
-@@ -74,6 +74,9 @@ override CROSS32AS += -mlittle-endian
- LDEMULATION := lppc
- GNUTARGET := powerpcle
- MULTIPLEWORD := -mno-multiple
-+ifeq ($(call cc-option-yn,-mno-save-toc-indirect),y)
-+ KBUILD_CFLAGS_MODULE += -mno-save-toc-indirect
-+endif
- else
- ifeq ($(call cc-option-yn,-mbig-endian),y)
- override CC += -mbig-endian
---