Skip to content

Commit

Permalink
ANDROID: arm64: vdso: guard against -Wl,-n
Browse files Browse the repository at this point in the history
LLD does not yet support it.

Bug: 63740206
Link: ClangBuiltLinux/linux#340
Link: https://bugs.llvm.org/show_bug.cgi?id=40542
Change-Id: Id62a3631b2da130a44ae018ddf4a2e8d095c16d7
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
  • Loading branch information
nickdesaulniers authored and najahiiii committed Jan 17, 2020
1 parent 170bee2 commit e9057b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm64/kernel/vdso/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down

0 comments on commit e9057b4

Please sign in to comment.