kernel: split patches folder up into backport, pending and hack folders
[openwrt/staging/wigyori.git] / target / linux / generic / hack-4.9 / 321-powerpc_crtsavres_prereq.patch
1 From 107c0964cb8db7ca28ac5199426414fdab3c274d Mon Sep 17 00:00:00 2001
2 From: "Alexandros C. Couloumbis" <alex@ozo.com>
3 Date: Fri, 7 Jul 2017 17:14:51 +0200
4 Subject: hack: arch: powerpc: drop register save/restore library from modules
5
6 Upstream GCC uses a libgcc function for saving/restoring registers. This
7 makes the code bigger, and upstream kernels need to carry that function
8 for every single kernel module. Our GCC is patched to avoid those
9 references, so we can drop the extra bloat for modules.
10
11 lede-commit: e8e1084654f50904e6bf77b70b2de3f137d7b3ec
12 Signed-off-by: Alexandros C. Couloumbis <alex@ozo.com>
13 ---
14 arch/powerpc/Makefile | 1 -
15 1 file changed, 1 deletion(-)
16
17 diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
18 index 617dece67924..1146daa8e4c2 100644
19 --- a/arch/powerpc/Makefile
20 +++ b/arch/powerpc/Makefile
21 @@ -179,7 +179,6 @@ else
22 CHECKFLAGS += -D__LITTLE_ENDIAN__
23 endif
24
25 -KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o
26
27 ifeq ($(CONFIG_476FPE_ERR46),y)
28 KBUILD_LDFLAGS_MODULE += --ppc476-workaround \
29 --
30 2.11.0
31