Skip to content

Commit ec33408

Browse files
committed
kbuild: remove redundant LDFLAGS clearing in arch/*/Makefile
Since commit ce99d0b ("kbuild: clear LDFLAGS in the top Makefile"), the top-level Makefile caters to this. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
1 parent 3a477d4 commit ec33408

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

‎arch/arm/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
#
1111
# Copyright (C) 1995-2001 by Russell King
1212

13-
# Ensure linker flags are correct
14-
LDFLAGS :=
15-
1613
LDFLAGS_vmlinux :=-p --no-undefined -X --pic-veneer
1714
ifeq ($(CONFIG_CPU_ENDIAN_BE8),y)
1815
LDFLAGS_vmlinux += --be8

‎arch/openrisc/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
KBUILD_DEFCONFIG := or1ksim_defconfig
2121

22-
LDFLAGS :=
2322
OBJCOPYFLAGS := -O binary -R .note -R .comment -S
2423
LDFLAGS_vmlinux :=
2524
LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)

‎arch/riscv/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# for more details.
99
#
1010

11-
LDFLAGS :=
1211
OBJCOPYFLAGS := -O binary
1312
LDFLAGS_vmlinux :=
1413
ifeq ($(CONFIG_DYNAMIC_FTRACE),y)

0 commit comments

Comments
 (0)