321-powerpc_crtsavres_prereq.patch 941 B

1234567891011121314151617181920212223242526
  1. From 107c0964cb8db7ca28ac5199426414fdab3c274d Mon Sep 17 00:00:00 2001
  2. From: "Alexandros C. Couloumbis" <[email protected]>
  3. Date: Fri, 7 Jul 2017 17:14:51 +0200
  4. Subject: hack: arch: powerpc: drop register save/restore library from modules
  5. Upstream GCC uses a libgcc function for saving/restoring registers. This
  6. makes the code bigger, and upstream kernels need to carry that function
  7. for every single kernel module. Our GCC is patched to avoid those
  8. references, so we can drop the extra bloat for modules.
  9. lede-commit: e8e1084654f50904e6bf77b70b2de3f137d7b3ec
  10. Signed-off-by: Alexandros C. Couloumbis <[email protected]>
  11. ---
  12. arch/powerpc/Makefile | 1 -
  13. 1 file changed, 1 deletion(-)
  14. --- a/arch/powerpc/Makefile
  15. +++ b/arch/powerpc/Makefile
  16. @@ -188,7 +188,6 @@ else
  17. CHECKFLAGS += -D__LITTLE_ENDIAN__
  18. endif
  19. -KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o
  20. ifeq ($(CONFIG_476FPE_ERR46),y)
  21. KBUILD_LDFLAGS_MODULE += --ppc476-workaround \