undefined reference to `_init'

From: kernel test robot
Date: Fri Dec 01 2023 - 04:04:14 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 994d5c58e50e91bb02c7be4a91d5186292a895c8
commit: 3ce51050fadd63737c03627293ca2dc4be238891 selftest: size: Add size test for Linux kernel
date: 9 years ago
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231201/202312011721.kLbSzwWM-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/202312011721.kLbSzwWM-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libc.a(libc-start.o): in function `__libc_start_main_impl':
>> (.text+0x1938): undefined reference to `_init'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libc.a(libc-start.o): in function `call_fini':
>> (.text+0x39): undefined reference to `_fini'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libc.a(dl-reloc-static-pie.o): in function `_dl_relocate_static_pie':
>> (.text+0x2d): undefined reference to `_DYNAMIC'
/usr/bin/ld: (.text+0x89): undefined reference to `_DYNAMIC'
/usr/bin/ld: (.text+0x94): undefined reference to `_DYNAMIC'
>> collect2: error: ld returned 1 exit status

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki