[arm-platforms:hack/arm64-early-cpufeature 18/18] idreg-override.c:undefined reference to `kaslr_feature_val'

kernel test robot lkp at intel.com
Mon Dec 28 11:56:49 EST 2020


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/arm64-early-cpufeature
head:   c78a06f2038a2d430effe8507a9da0477558954b
commit: c78a06f2038a2d430effe8507a9da0477558954b [18/18] arm64: Move "nokaslr" over to the early cpufeature infrastructure
config: arm64-randconfig-r015-20201228 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=c78a06f2038a2d430effe8507a9da0477558954b
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms hack/arm64-early-cpufeature
        git checkout c78a06f2038a2d430effe8507a9da0477558954b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   aarch64-linux-ld: arch/arm64/kernel/idreg-override.o: in function `init_shadow_regs':
>> idreg-override.c:(.init.text+0x3bc): undefined reference to `kaslr_feature_val'
   aarch64-linux-ld: arch/arm64/kernel/idreg-override.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kaslr_feature_val' which may bind externally can not be used when making a shared object; recompile with -fPIC
   idreg-override.c:(.init.text+0x3bc): dangerous relocation: unsupported relocation
>> aarch64-linux-ld: idreg-override.c:(.init.text+0x3c0): undefined reference to `kaslr_feature_mask'
   aarch64-linux-ld: arch/arm64/kernel/idreg-override.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `kaslr_feature_mask' which may bind externally can not be used when making a shared object; recompile with -fPIC
   idreg-override.c:(.init.text+0x3c0): dangerous relocation: unsupported relocation
>> aarch64-linux-ld: idreg-override.c:(.init.text+0x3d8): undefined reference to `kaslr_feature_val'
   aarch64-linux-ld: idreg-override.c:(.init.text+0x3dc): undefined reference to `kaslr_feature_mask'
   aarch64-linux-ld: idreg-override.c:(.init.text+0x454): undefined reference to `kaslr_feature_val'
   aarch64-linux-ld: idreg-override.c:(.init.text+0x460): undefined reference to `kaslr_feature_mask'
>> aarch64-linux-ld: arch/arm64/kernel/idreg-override.o:(.init.data+0x48): undefined reference to `kaslr_feature_val'
>> aarch64-linux-ld: arch/arm64/kernel/idreg-override.o:(.init.data+0x50): undefined reference to `kaslr_feature_mask'

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_SOC_MT6359
   Depends on SOUND && !UML && SND && SND_SOC && MTK_PMIC_WRAP
   Selected by
   - SND_SOC_MT8192_MT6359_RT1015_RT5682 && SOUND && !UML && SND && SND_SOC && I2C && SND_SOC_MT8192

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 39568 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201229/4fe06622/attachment-0001.gz>


More information about the linux-arm-kernel mailing list