riscv32-linux-ld: init/main.o(__patchable_function_entries): error: need linked-to section for --gc-sections
From: kernel test robot
Date: Tue Dec 30 2025 - 06:44:55 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8640b74557fc8b4c300030f6ccb8cd078f665ec8
commit: d0262e907e2991ae09ca476281fc8cae3ec57850 riscv: ftrace: support PREEMPT
date: 7 months ago
config: riscv-randconfig-r132-20251230 (https://download.01.org/0day-ci/archive/20251230/202512301903.wJiXZKa8-lkp@xxxxxxxxx/config)
compiler: riscv32-linux-gcc (GCC) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251230/202512301903.wJiXZKa8-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512301903.wJiXZKa8-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
>> riscv32-linux-ld: init/main.o(__patchable_function_entries): error: need linked-to section for --gc-sections
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki