2016-12-25 07:21:59

by Fengguang Wu

[permalink] [raw]
Subject: undefined reference to `_text'

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'

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation


Attachments:
(No filename) (1.00 kB)
.config.gz (5.92 kB)
Download all attachments

2016-12-25 08:36:44

by Stafford Horne

[permalink] [raw]
Subject: Re: undefined reference to `_text'

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