Re: undefined reference to `_text'

From: Stafford Horne
Date: Wed Dec 14 2016 - 07:59:45 EST


On Wed, Dec 14, 2016 at 05:00:22AM +0800, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: b78b499a67c3f77aeb6cd0b54724bc38b141255d
> commit: 7c7808ce107d63e158dbbc3af085980985a0c3c4 openrisc: prevent VGA console, fix builds
> date: 31 hours ago
> config: openrisc-alldefconfig (attached as .config)
> compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
> reproduce:
> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 7c7808ce107d63e158dbbc3af085980985a0c3c4
> # save the attached .config to linux build tree
> make.cross ARCH=openrisc
>
> All errors (new ones prefixed by >>):
>
> .tmp_kallsyms1.o: In function `kallsyms_relative_base':
> >> (.rodata+0x8a18): undefined reference to `_text'
>

I just sent a patch for this.

"openrisc: Add _text symbol to fix ksym build error"

-Stafford