From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDB2A320E; Mon, 6 Mar 2023 14:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678114407; x=1709650407; h=date:from:cc:subject:message-id:mime-version; bh=du0gFVBYHnfxcXvruYbybeucjdbCiNLcJwnO+nrzaUI=; b=Rs+7B3CJnj6zws+K7EcU6pDlgiJKr8TOBHx5sbAVLO1rwN5FCD0Mphby iNID2lfMGJOFyRoDqGlcSStp3ZaALBLClFe6U+MB5qYGgTSFnmPTkgCVk lwpKI9CkxZfyqG9UWWnQrCM+ESvqAHHU1qLYp5DPIczQKfFghwakR1Oxn iYzaBGBBqWtNmQcheuld64/qJRaXJV5FcDzbHa76BdBqkdAmC28EAhsFN LFVDzkmQu14lGPzJbt/WEn1XZQ52UIVTPCICft9eTV+9WPdm/YqHUUdal /2VkH0F0YM4qYy5KrltF314k2UHDTRAElh2ZBQ5rBpK0e2XnsO2DPAUdb A==; X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="315967283" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="315967283" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2023 06:53:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="676187640" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="676187640" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 06 Mar 2023 06:53:23 -0800 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pZCDL-0000P9-05; Mon, 06 Mar 2023 14:53:23 +0000 Date: Mon, 6 Mar 2023 22:53:00 +0800 From: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, llvm@lists.linux.dev Subject: ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_match_symbol: .text+0x9c0): relocation R_RISCV_PCREL_HI20 out of range: -524400 is not in [-524288, 524287]; references kallsyms_relative_base Message-ID: <202303062229.MO9XkAkM-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline CC: linux-kernel@vger.kernel.org TO: Zhen Lei CC: Luis Chamberlain Hi Zhen, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fe15c26ee26efa11741a7b632e9f23b01aca4cc6 commit: 4dc533e0f2c04174e1ae4aa98e7cffc1c04b9998 kallsyms: Add helper kallsyms_on_each_match_symbol() date: 4 months ago config: riscv-buildonly-randconfig-r006-20230306 (https://download.01.org/0day-ci/archive/20230306/202303062229.MO9XkAkM-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7) 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=4dc533e0f2c04174e1ae4aa98e7cffc1c04b9998 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 4dc533e0f2c04174e1ae4aa98e7cffc1c04b9998 # 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 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303062229.MO9XkAkM-lkp@intel.com/ All errors (new ones prefixed by >>): >> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_match_symbol: .text+0x9c0): relocation R_RISCV_PCREL_HI20 out of range: -524400 is not in [-524288, 524287]; references kallsyms_relative_base >>> referenced by kallsyms.c >>> defined in vmlinux.a(kernel/kallsyms.o) -- >> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_match_symbol: .text+0x9d4): relocation R_RISCV_PCREL_HI20 out of range: -524400 is not in [-524288, 524287]; references kallsyms_seqs_of_names >>> referenced by kallsyms.c >>> defined in vmlinux.a(kernel/kallsyms.o) -- >> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_on_each_match_symbol: .text+0x9dc): relocation R_RISCV_PCREL_HI20 out of range: -524400 is not in [-524288, 524287]; references kallsyms_offsets >>> referenced by kallsyms.c >>> defined in vmlinux.a(kernel/kallsyms.o) -- >> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0x148): relocation R_RISCV_PCREL_HI20 out of range: -524400 is not in [-524288, 524287]; references kallsyms_num_syms >>> referenced by kallsyms.c >>> defined in vmlinux.a(kernel/kallsyms.o) -- >> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0x178): relocation R_RISCV_PCREL_HI20 out of range: -524400 is not in [-524288, 524287]; references kallsyms_seqs_of_names >>> referenced by kallsyms.c >>> defined in vmlinux.a(kernel/kallsyms.o) -- >> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0x180): relocation R_RISCV_PCREL_HI20 out of range: -524400 is not in [-524288, 524287]; references kallsyms_markers >>> referenced by kallsyms.c >>> defined in vmlinux.a(kernel/kallsyms.o) -- >> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0x188): relocation R_RISCV_PCREL_HI20 out of range: -524400 is not in [-524288, 524287]; references kallsyms_names >>> referenced by kallsyms.c >>> defined in vmlinux.a(kernel/kallsyms.o) -- >> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0x190): relocation R_RISCV_PCREL_HI20 out of range: -524400 is not in [-524288, 524287]; references kallsyms_token_index >>> referenced by kallsyms.c >>> defined in vmlinux.a(kernel/kallsyms.o) -- >> ld.lld: error: vmlinux.a(kernel/kallsyms.o):(function kallsyms_lookup_names: .text+0x290): relocation R_RISCV_PCREL_HI20 out of range: -524400 is not in [-524288, 524287]; references kallsyms_token_table >>> referenced by kallsyms.c >>> defined in vmlinux.a(kernel/kallsyms.o) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests