diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-22 23:56:52 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-03-01 19:20:56 -0500 |
commit | 0da4fabdf40a36e22b50f9a4143be18a0d98963f (patch) | |
tree | 248a40e0a118e750ee4a83b0dcffaaad9345d5aa | |
parent | a7b151fffbf5236dd24b60aa0a83dc1c53c9f6c0 (diff) |
kbuild: test --build-id linker flag by ld-option instead of cc-ldoption
'--build-id' is passed to $(LD), so it should be tested by 'ld-option'.
This seems a kind of misconversion when ld-option was renamed to
cc-ldoption.
Commit f86fd3066052 ("kbuild: rename ld-option to cc-ldoption") renamed
all instances of 'ld-option' to 'cc-ldoption'.
Then, commit 691ef3e7fdc1 ("kbuild: introduce ld-option") re-added
'ld-option' as a new implementation.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -856,8 +856,7 @@ KBUILD_AFLAGS += $(ARCH_AFLAGS) $(KAFLAGS) | |||
856 | KBUILD_CFLAGS += $(ARCH_CFLAGS) $(KCFLAGS) | 856 | KBUILD_CFLAGS += $(ARCH_CFLAGS) $(KCFLAGS) |
857 | 857 | ||
858 | # Use --build-id when available. | 858 | # Use --build-id when available. |
859 | LDFLAGS_BUILD_ID := $(patsubst -Wl$(comma)%,%,\ | 859 | LDFLAGS_BUILD_ID := $(call ld-option, --build-id) |
860 | $(call cc-ldoption, -Wl$(comma)--build-id,)) | ||
861 | KBUILD_LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID) | 860 | KBUILD_LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID) |
862 | LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID) | 861 | LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID) |
863 | 862 | ||