tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 40354149f4d738dc3492d9998e45b3f02950369a commit: 4f1aef9b806f58ef76fdac0b4d9cfab6e66aeef1 [2214/4328] crypto: arm64/sm4 - add ARMv8 NEON implementation config: arm64-randconfig-r002-20220414 (https://download.01.org/0day-ci/archive/20220414/202204142151.5cJBAHP4-lkp@xxxxxxxxx/config) compiler: aarch64-linux-gcc (GCC) 11.2.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/next/linux-next.git/commit/?id=4f1aef9b806f58ef76fdac0b4d9cfab6e66aeef1 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 4f1aef9b806f58ef76fdac0b4d9cfab6e66aeef1 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross 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 >>): aarch64-linux-ld: Unexpected GOT/PLT entries detected! aarch64-linux-ld: Unexpected run-time procedure linkages detected! aarch64-linux-ld: kexec relocation code is too big or misaligned aarch64-linux-ld: arch/arm64/crypto/sm4-neon-glue.o: in function `sm4_setkey': >> sm4-neon-glue.c:(.text+0x190): undefined reference to `sm4_expandkey' aarch64-linux-ld: arch/arm64/crypto/sm4-neon-glue.o: in function `sm4_cbc_encrypt': >> sm4-neon-glue.c:(.text+0x268): undefined reference to `sm4_crypt_block' aarch64-linux-ld: arch/arm64/crypto/sm4-neon-glue.o: in function `sm4_cfb_decrypt': sm4-neon-glue.c:(.text+0x65c): undefined reference to `sm4_crypt_block' aarch64-linux-ld: arch/arm64/crypto/sm4-neon-glue.o: in function `sm4_cfb_encrypt': sm4-neon-glue.c:(.text+0x7f0): undefined reference to `sm4_crypt_block' >> aarch64-linux-ld: sm4-neon-glue.c:(.text+0x880): undefined reference to `sm4_crypt_block' aarch64-linux-ld: arch/arm64/crypto/sm4-neon-glue.o: in function `sm4_ctr_crypt': sm4-neon-glue.c:(.text+0xa94): undefined reference to `sm4_crypt_block' aarch64-linux-ld: arch/arm64/crypto/sm4-neon-core.o: in function `__sm4_neon_crypt_blk1_4': >> (.text+0x4): undefined reference to `crypto_sm4_sbox' aarch64-linux-ld: arch/arm64/crypto/sm4-neon-core.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `crypto_sm4_sbox' which may bind externally can not be used when making a shared object; recompile with -fPIC (.text+0x4): dangerous relocation: unsupported relocation >> aarch64-linux-ld: (.text+0x8): undefined reference to `crypto_sm4_sbox' aarch64-linux-ld: arch/arm64/crypto/sm4-neon-core.o: in function `sm4_neon_crypt_blk1_8': (.text+0x284): undefined reference to `crypto_sm4_sbox' aarch64-linux-ld: arch/arm64/crypto/sm4-neon-core.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `crypto_sm4_sbox' which may bind externally can not be used when making a shared object; recompile with -fPIC (.text+0x284): dangerous relocation: unsupported relocation aarch64-linux-ld: (.text+0x288): undefined reference to `crypto_sm4_sbox' aarch64-linux-ld: arch/arm64/crypto/sm4-neon-core.o: in function `sm4_neon_crypt_blk8': (.text+0x6e4): undefined reference to `crypto_sm4_sbox' aarch64-linux-ld: arch/arm64/crypto/sm4-neon-core.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `crypto_sm4_sbox' which may bind externally can not be used when making a shared object; recompile with -fPIC (.text+0x6e4): dangerous relocation: unsupported relocation aarch64-linux-ld: arch/arm64/crypto/sm4-neon-core.o:(.text+0x6e8): more undefined references to `crypto_sm4_sbox' follow aarch64-linux-ld: arch/arm64/crypto/sm4-neon-core.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `crypto_sm4_sbox' which may bind externally can not be used when making a shared object; recompile with -fPIC arch/arm64/crypto/sm4-neon-core.o: in function `sm4_neon_cbc_dec_blk8': (.text+0xb04): dangerous relocation: unsupported relocation aarch64-linux-ld: arch/arm64/crypto/sm4-neon-core.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `crypto_sm4_sbox' which may bind externally can not be used when making a shared object; recompile with -fPIC arch/arm64/crypto/sm4-neon-core.o: in function `sm4_neon_cfb_dec_blk8': (.text+0xf5c): dangerous relocation: unsupported relocation aarch64-linux-ld: arch/arm64/crypto/sm4-neon-core.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `crypto_sm4_sbox' which may bind externally can not be used when making a shared object; recompile with -fPIC arch/arm64/crypto/sm4-neon-core.o: in function `sm4_neon_ctr_enc_blk8': (.text+0x13b4): dangerous relocation: unsupported relocation -- 0-DAY CI Kernel Test Service https://01.org/lkp