[ardb:arm64-head-refactor-v3 20/31] ld.lld: error: undefined symbol: kaslr_init

From: kernel test robot
Date: Sat Apr 09 2022 - 17:38:29 EST


tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-head-refactor-v3
head: 9100077933636313b1b15d23cb9cc068a40d838d
commit: 47f4cfe71f69abd40ca9e64dab211434c00edb6c [20/31] arm64: head: relocate kernel only a single time if KASLR is enabled
config: arm64-randconfig-r021-20220410 (https://download.01.org/0day-ci/archive/20220410/202204100546.UPgpZlI9-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 256c6b0ba14e8a7ab6373b61b7193ea8c0a3651c)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=47f4cfe71f69abd40ca9e64dab211434c00edb6c
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb arm64-head-refactor-v3
git checkout 47f4cfe71f69abd40ca9e64dab211434c00edb6c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: kaslr_init
>>> referenced by setup.c:316 (arch/arm64/kernel/setup.c:316)
>>> kernel/setup.o:(setup_arch) in archive arch/arm64/built-in.a

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