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>
Signed-off-by: Yousef Algadri <yusufgadrie@gmail.com>
Signed-off-by: Raphiel Rollerscaperers <rapherion@raphielgang.org>
Signed-off-by: Rapherion Rollerscaperers <rapherion@raphielgang.org>
Signed-off-by: Twisted <36546624+TwistedPrime@users.noreply.github.com>
Signed-off-by: MadeOfGreat <ravenklawasd@gmail.com>
  • Loading branch information
nickdesaulniers authored and userariii committed Sep 13, 2024
1 parent 24a9a61 commit 46640db
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 @@ -72,7 +72,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 46640db

Please sign in to comment.