riscv: disable stack-protector for vDSO
authorTobias Klauser <tklauser@distanz.ch>
Wed, 29 Jul 2020 07:51:29 +0000 (09:51 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 4 Aug 2020 22:02:49 +0000 (15:02 -0700)
commit40284a072c42f6177184fb1f62ba94c69e0c0277
treeb2eb252c0069b82397d479c54c155dce5efd7805
parent635093e306a3e4543937b079dc797c2ee0bafa09
riscv: disable stack-protector for vDSO

Currently, building the vDSO with clang leads assembler errors like the
following:

  /tmp/vgettimeofday-1ae0d2.s: Assembler messages:
  /tmp/vgettimeofday-1ae0d2.s:28: Error: bad expression
  /tmp/vgettimeofday-1ae0d2.s:28: Error: illegal operands `auipc a2,%got_pcrel_hi(__stack_chk_guard)'

Disable the stack-protector for vDSO to fix these.

Link: https://github.com/ClangBuiltLinux/linux/issues/1112
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/vdso/Makefile