llvm-nm: error: arch/riscv/kernel/vdso/vdso.so.dbg: No such file or directory

From: kernel test robot
Date: Mon Sep 12 2022 - 21:31:45 EST


Hi Saleem,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e839a756012b6cad7a4eeb67b0598ac3f349f863
commit: fde9c59aebafb91caeed816cc510b56f14aa63ae riscv: explicitly use symbol offsets for VDSO
date: 1 year, 1 month ago
config: riscv-randconfig-r031-20220911 (https://download.01.org/0day-ci/archive/20220913/202209130916.1lUqRlBJ-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1546df49f5a6d09df78f569e4137ddb365a3e827)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fde9c59aebafb91caeed816cc510b56f14aa63ae
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout fde9c59aebafb91caeed816cc510b56f14aa63ae
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv prepare

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

ld.lld: error: section .text load address range overlaps with _ftrace_annotated_branch
>>> .text range is [0x800, 0x112B]
>>> _ftrace_annotated_branch range is [0x840, 0xAAF]
>> llvm-nm: error: arch/riscv/kernel/vdso/vdso.so.dbg: No such file or directory

--
0-DAY CI Kernel Test Service
https://01.org/lkp