kernel: Update kernel 4.9 to 4.9.70
[openwrt/openwrt.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 --- a/arch/powerpc/Makefile
18 +++ b/arch/powerpc/Makefile
19 @@ -188,7 +188,6 @@ else
20 CHECKFLAGS += -D__LITTLE_ENDIAN__
21 endif
22
23 -KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o
24
25 ifeq ($(CONFIG_476FPE_ERR46),y)
26 KBUILD_LDFLAGS_MODULE += --ppc476-workaround \