On 2020-06-07, kernel test robot wrote:
CC: linux-kernel(a)vger.kernel.org
TO: Ilie Halip <ilie.halip(a)gmail.com>
CC: Palmer Dabbelt <palmerdabbelt(a)google.com>
CC: Nick Desaulniers <ndesaulniers(a)google.com>
CC: Fangrui Song <maskray(a)google.com>
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b170290c2836c40ab565736ba37681eb3dfd79b8
commit: 3c1918c8f54166598195d938564072664a8275b1 riscv: fix vdso build with lld
date: 7 weeks ago
config: riscv-randconfig-r022-20200607 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
e429cffd4f228f70c1d9df0e5d77c08590dd9766)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git checkout 3c1918c8f54166598195d938564072664a8275b1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ld.lld: error: unknown argument '--no-relax'
The missing feature is known. We don't know which project actually uses
ld --no-relax, so while I know this option is meaningful on x86-64, it did
not seem meaningful to implement it. Since the Linux kernel uses it
(well, since
http://git.kernel.org/linus/a1d2a6b4cee858a2f27eebce731fbf1dfd72cb4e riscv/ftrace: Add
RECORD_MCOUNT support
the pre -fpatchable-function-entry approach) uses --no-relax, it seems
fine to implement it in LLD (
https://reviews.llvm.org/D81359 )