Re: undefined reference to `_text'

From: Stafford Horne
Date: Sun Dec 25 2016 - 03:37:03 EST


On Sun, Dec 25, 2016 at 03:21:43PM +0800, kbuild test robot wrote:
> Hi Randy,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 7c0f6ba682b9c7632072ffbedf8d328c8f3c42ba
> commit: 7c7808ce107d63e158dbbc3af085980985a0c3c4 openrisc: prevent VGA console, fix builds
> date: 13 days 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'
>

Hello,

I have posted a patch for this. I will submit a pull request to Linus
with a few other minor fixes after the merge window and holidays.

-Stafford