Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 8819/1: Remove '-p' from LDFLAGS

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>

authored by

Nathan Chancellor and committed by
Russell King
091bb549 4a4d68fc

+2 -4
+1 -1
arch/arm/Makefile
··· 10 10 # 11 11 # Copyright (C) 1995-2001 by Russell King 12 12 13 - LDFLAGS_vmlinux :=-p --no-undefined -X --pic-veneer 13 + LDFLAGS_vmlinux := --no-undefined -X --pic-veneer 14 14 ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) 15 15 LDFLAGS_vmlinux += --be8 16 16 KBUILD_LDFLAGS_MODULE += --be8
+1 -1
arch/arm/boot/bootp/Makefile
··· 8 8 9 9 GCOV_PROFILE := n 10 10 11 - LDFLAGS_bootp :=-p --no-undefined -X \ 11 + LDFLAGS_bootp := --no-undefined -X \ 12 12 --defsym initrd_phys=$(INITRD_PHYS) \ 13 13 --defsym params_phys=$(PARAMS_PHYS) -T 14 14 AFLAGS_initrd.o :=-DINITRD=\"$(INITRD)\"
-2
arch/arm/boot/compressed/Makefile
··· 132 132 ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) 133 133 LDFLAGS_vmlinux += --be8 134 134 endif 135 - # ? 136 - LDFLAGS_vmlinux += -p 137 135 # Report unresolved symbol references 138 136 LDFLAGS_vmlinux += --no-undefined 139 137 # Delete all temporary local symbols