linux: update to 6.10.x, 6.9.x is EOL
[openadk.git] / target / linux / patches / 4.4.302 / use-libgcc-for-sh.patch
blob6420219b0bd5402fe775d96d9f96dbdd1b9de6da
1 diff -Nur linux-4.1.13.orig/arch/sh/Makefile linux-4.1.13/arch/sh/Makefile
2 --- linux-4.1.13.orig/arch/sh/Makefile 2015-11-09 23:34:10.000000000 +0100
3 +++ linux-4.1.13/arch/sh/Makefile 2015-12-06 19:59:31.000000000 +0100
4 @@ -200,7 +206,9 @@
5 KBUILD_CFLAGS += -fasynchronous-unwind-tables
6 endif
8 -libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y)
9 +LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a)
11 +libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) $(LIBGCC)
12 libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y)
14 BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.xz uImage.lzo \
15 diff -Nur linux-4.1.13.orig/arch/sh/lib/Makefile linux-4.1.13/arch/sh/lib/Makefile
16 --- linux-4.1.13.orig/arch/sh/lib/Makefile 2015-11-09 23:34:10.000000000 +0100
17 +++ linux-4.1.13/arch/sh/lib/Makefile 2015-12-06 19:59:14.000000000 +0100
18 @@ -5,11 +5,6 @@
19 lib-y = delay.o memmove.o memchr.o \
20 checksum.o strlen.o div64.o div64-generic.o
22 -# Extracted from libgcc
23 -obj-y += movmem.o ashldi3.o ashrdi3.o lshrdi3.o \
24 - ashlsi3.o ashrsi3.o ashiftrt.o lshrsi3.o \
25 - udiv_qrnnd.o
27 udivsi3-y := udivsi3_i4i-Os.o
29 ifneq ($(CONFIG_CC_OPTIMIZE_FOR_SIZE),y)