riscv: fix vdso build with lld
authorIlie Halip <ilie.halip@gmail.com>
Wed, 15 Apr 2020 14:29:58 +0000 (17:29 +0300)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 21 Apr 2020 22:22:45 +0000 (15:22 -0700)
commit3c1918c8f54166598195d938564072664a8275b1
treea8ac27fe8434e7a7697f57c4bf947a34472c96b6
parentaf2bdf828f7963fd139ea8c5e23fd2c4e0dfca97
riscv: fix vdso build with lld

When building with the LLVM linker this error occurrs:
    LD      arch/riscv/kernel/vdso/vdso-syms.o
  ld.lld: error: no input files

This happens because the lld treats -R as an alias to -rpath, as opposed
to ld where -R means --just-symbols.

Use the long option name for compatibility between the two.

Link: https://github.com/ClangBuiltLinux/linux/issues/805
Reported-by: Dmitry Golovin <dima@golovin.in>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Ilie Halip <ilie.halip@gmail.com>
Reviewed-by: Fangrui Song <maskray@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/vdso/Makefile