]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Oct 2021 17:14:25 +0000 (19:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Oct 2021 17:14:25 +0000 (19:14 +0200)
added patches:
arm-8819-1-remove-p-from-ldflags.patch

queue-4.19/arm-8819-1-remove-p-from-ldflags.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/arm-8819-1-remove-p-from-ldflags.patch b/queue-4.19/arm-8819-1-remove-p-from-ldflags.patch
new file mode 100644 (file)
index 0000000..101df97
--- /dev/null
@@ -0,0 +1,65 @@
+From 091bb549f7722723b284f63ac665e2aedcf9dec9 Mon Sep 17 00:00:00 2001
+From: Nathan Chancellor <natechancellor@gmail.com>
+Date: Sat, 5 Jan 2019 19:35:25 +0100
+Subject: ARM: 8819/1: Remove '-p' from LDFLAGS
+
+From: Nathan Chancellor <natechancellor@gmail.com>
+
+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 <natechancellor@gmail.com>
+Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
+Acked-by: Nicolas Pitre <nico@linaro.org>
+Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
+Reviewed-by: Stefan Agner <stefan@agner.ch>
+Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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
+@@ -10,7 +10,7 @@
+ #
+ # Copyright (C) 1995-2001 by Russell King
+-LDFLAGS_vmlinux       :=-p --no-undefined -X --pic-veneer
++LDFLAGS_vmlinux       := --no-undefined -X --pic-veneer
+ ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)
+ LDFLAGS_vmlinux       += --be8
+ KBUILD_LDFLAGS_MODULE += --be8
+--- a/arch/arm/boot/bootp/Makefile
++++ b/arch/arm/boot/bootp/Makefile
+@@ -8,7 +8,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
+@@ -133,8 +133,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
index dc1ee6572453655a311f5547d598e2b255399bc7..d78650c72bcb568a6d1c7ea2567699800d97be96 100644 (file)
@@ -4,3 +4,4 @@ arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch
 arm-9141-1-only-warn-about-xip-address-when-not-compile-testing.patch
 powerpc-bpf-fix-bpf_mod-when-imm-1.patch
 arm64-avoid-premature-usercopy-failure.patch
+arm-8819-1-remove-p-from-ldflags.patch