linux-2.6.35: move version specific patch in /linux-2.6.35
[openembedded.git] / recipes / linux / linux-2.6.35 / fix.module.loading.16310.patch
blobcd2fa6ca2d91482ae3e767ffec9cefedc14cbfb7
1 From 1cb348e903f81bb34abe00c9a06b42009ddca819 Mon Sep 17 00:00:00 2001
2 From: Michal Marek <mmarek@suse.cz>
3 Date: Fri, 2 Jul 2010 13:17:37 +0200
4 Subject: [PATCH] arm: Build with -fno-dwarf2-cfi-asm
6 Commit d0679c7 restricted this workaround to powerpc only, but it turns
7 out that ARM needs it as well. Fixes
8 https://bugzilla.kernel.org/show_bug.cgi?id=16310 .
10 Reported-by: Robert Nelson <robertcnelson@gmail.com>
11 Signed-off-by: Michal Marek <mmarek@suse.cz>
13 diff --git a/arch/arm/Makefile b/arch/arm/Makefile
14 index 64ba313..862d4ba 100644
15 --- a/arch/arm/Makefile
16 +++ b/arch/arm/Makefile
17 @@ -21,6 +21,11 @@ GZFLAGS :=-9
18 # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
19 KBUILD_CFLAGS +=$(call cc-option,-marm,)
21 +# FIXME: the module load should be taught about the additional relocs
22 +# generated by this.
23 +# revert to pre-gcc-4.4 behaviour of .eh_frame
24 +KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm)
26 # Do not use arch/arm/defconfig - it's always outdated.
27 # Select a platform tht is kept up-to-date
28 KBUILD_DEFCONFIG := versatile_defconfig