From e405afb93c2f88510e42329907973c19e081f5e2 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 27 Oct 2021 19:14:10 +0200 Subject: [PATCH] 4.14-stable patches added patches: arm-8819-1-remove-p-from-ldflags.patch --- .../arm-8819-1-remove-p-from-ldflags.patch | 65 +++++++++++++++++++ queue-4.14/series | 1 + 2 files changed, 66 insertions(+) create mode 100644 queue-4.14/arm-8819-1-remove-p-from-ldflags.patch diff --git a/queue-4.14/arm-8819-1-remove-p-from-ldflags.patch b/queue-4.14/arm-8819-1-remove-p-from-ldflags.patch new file mode 100644 index 00000000000..b109a6844a9 --- /dev/null +++ b/queue-4.14/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 +@@ -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 +@@ -129,8 +129,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.14/series b/queue-4.14/series index acaf97e95f3..1a8f01ea38a 100644 --- a/queue-4.14/series +++ b/queue-4.14/series @@ -2,3 +2,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 powerpc-bpf-fix-bpf_mod-when-imm-1.patch +arm-8819-1-remove-p-from-ldflags.patch -- 2.47.3