From: Greg Kroah-Hartman Date: Wed, 27 Oct 2021 17:13:39 +0000 (+0200) Subject: 4.4-stable patches X-Git-Tag: v4.4.291~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f1c3d66da8599e89cce9ce58f9a728f7460eb27;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: arm-8819-1-remove-p-from-ldflags.patch --- diff --git a/queue-4.4/arm-8819-1-remove-p-from-ldflags.patch b/queue-4.4/arm-8819-1-remove-p-from-ldflags.patch new file mode 100644 index 00000000000..f9416368549 --- /dev/null +++ b/queue-4.4/arm-8819-1-remove-p-from-ldflags.patch @@ -0,0 +1,65 @@ +From 091bb549f7722723b284f63ac665e2aedcf9dec9 Mon Sep 17 00:00:00 2001 +From: Nathan Chancellor +Date: Sat, 5 Jan 2019 19:35:25 +0100 +Subject: ARM: 8819/1: Remove '-p' from LDFLAGS + +From: Nathan Chancellor + +commit 091bb549f7722723b284f63ac665e2aedcf9dec9 upstream. + +This option is not supported by lld: + + ld.lld: error: unknown argument: -p + +This has been a no-op in binutils since 2004 (see commit dea514f51da1 in +that tree). Given that the lowest officially supported of binutils for +the kernel is 2.20, which was released in 2009, nobody needs this flag +around so just remove it. Commit 1a381d4a0a9a ("arm64: remove no-op -p +linker flag") did the same for arm64. + +Signed-off-by: Nathan Chancellor +Acked-by: Ard Biesheuvel +Acked-by: Nicolas Pitre +Reviewed-by: Nick Desaulniers +Reviewed-by: Stefan Agner +Signed-off-by: Russell King +Signed-off-by: Greg Kroah-Hartman +--- + arch/arm/Makefile | 2 +- + arch/arm/boot/bootp/Makefile | 2 +- + arch/arm/boot/compressed/Makefile | 2 -- + 3 files changed, 2 insertions(+), 4 deletions(-) + +--- a/arch/arm/Makefile ++++ b/arch/arm/Makefile +@@ -13,7 +13,7 @@ + # Ensure linker flags are correct + LDFLAGS := + +-LDFLAGS_vmlinux :=-p --no-undefined -X --pic-veneer ++LDFLAGS_vmlinux := --no-undefined -X --pic-veneer + ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) + LDFLAGS_vmlinux += --be8 + LDFLAGS_MODULE += --be8 +--- a/arch/arm/boot/bootp/Makefile ++++ b/arch/arm/boot/bootp/Makefile +@@ -7,7 +7,7 @@ + + GCOV_PROFILE := n + +-LDFLAGS_bootp :=-p --no-undefined -X \ ++LDFLAGS_bootp := --no-undefined -X \ + --defsym initrd_phys=$(INITRD_PHYS) \ + --defsym params_phys=$(PARAMS_PHYS) -T + AFLAGS_initrd.o :=-DINITRD=\"$(INITRD)\" +--- a/arch/arm/boot/compressed/Makefile ++++ b/arch/arm/boot/compressed/Makefile +@@ -122,8 +122,6 @@ endif + ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) + LDFLAGS_vmlinux += --be8 + endif +-# ? +-LDFLAGS_vmlinux += -p + # Report unresolved symbol references + LDFLAGS_vmlinux += --no-undefined + # Delete all temporary local symbols diff --git a/queue-4.4/series b/queue-4.4/series index c053e8bee06..6da67d70d43 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -1,3 +1,4 @@ arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch arm-9134-1-remove-duplicate-memcpy-definition.patch arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch +arm-8819-1-remove-p-from-ldflags.patch