From ff7326c8b0e1b91f30e81c913626c796364814f6 Mon Sep 17 00:00:00 2001 From: Nick Desaulniers Date: Wed, 30 Jan 2019 18:25:01 -0800 Subject: [PATCH] ANDROID: arm64: vdso: guard against -Wl,-n LLD does not yet support it. Bug: 63740206 Link: https://github.com/ClangBuiltLinux/linux/issues/340 Link: https://bugs.llvm.org/show_bug.cgi?id=40542 Change-Id: Id62a3631b2da130a44ae018ddf4a2e8d095c16d7 Signed-off-by: Nick Desaulniers --- arch/arm64/kernel/vdso/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile index 72f10ecdf4f77..32f76c6cf5056 100644 --- a/arch/arm64/kernel/vdso/Makefile +++ b/arch/arm64/kernel/vdso/Makefile @@ -73,7 +73,8 @@ $(obj-vdso-c): %.o: %.c FORCE # Actual build commands quiet_cmd_vdsold = VDSOL $@ - cmd_vdsold = $(CC) $(c_flags) -Wl,-n -Wl,-T $^ -o $@ + cmd_vdsold = $(CC) $(c_flags) $(call cc-ldoption, -Wl$(comma)-n) \ + -Wl$(comma)-T $^ -o $@ quiet_cmd_vdsocc = VDSOC $@ cmd_vdsocc = ${CC} $(c_flags) -c -o $@ $< quiet_cmd_vdsoas = VDSOA $@