From: Michael Ellerman <mpe@ellerman.id.au>
To: Masahiro Yamada <yamada.masahiro@socionext.com>,
Nicholas Piggin <npiggin@gmail.com>
Cc: kbuild test robot <fengguang.wu@intel.com>,
linuxppc-dev@lists.ozlabs.org, kbuild-all@01.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: powerpc-linux-gnu-ld: warning: orphan section `.data.rel.ro' from `arch/powerpc/kernel/head_44x.o' being placed in section `.data.rel.ro'.
Date: Tue, 14 Nov 2017 21:17:58 +1100 [thread overview]
Message-ID: <8760adw4dl.fsf@concordia.ellerman.id.au> (raw)
In-Reply-To: <CAK7LNASo7qBCweTvm=U709DXhayQXajP+3zQ3GnhqkrBkSB8Ow@mail.gmail.com>
Masahiro Yamada <yamada.masahiro@socionext.com> writes:
> Hi Nicholas,
>
>
> 2017-11-11 17:45 GMT+09:00 Nicholas Piggin <npiggin@gmail.com>:
>> On Fri, 10 Nov 2017 23:41:49 +0800
>> kbuild test robot <fengguang.wu@intel.com> wrote:
>>
>>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>> head: 1c9dbd4615fd751e5e0b99807a3c7c8612e28e20
>>> commit: cb87481ee89dbd6609e227afbf64900fb4e5c930 kbuild: linker script do not match C names unless LD_DEAD_CODE_DATA_ELIMINATION is configured
>>> date: 3 months ago
>>> config: powerpc-fsp2_defconfig (attached as .config)
>>> compiler: powerpc-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
>>> reproduce:
>>> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>>> chmod +x ~/bin/make.cross
>>> git checkout cb87481ee89dbd6609e227afbf64900fb4e5c930
>>> # save the attached .config to linux build tree
>>> make.cross ARCH=powerpc
>>>
>>> All warnings (new ones prefixed by >>):
>>>
>>> >> powerpc-linux-gnu-ld: warning: orphan section `.data.rel.ro' from `arch/powerpc/kernel/head_44x.o' being placed in section `.data.rel.ro'.
>>> >> powerpc-linux-gnu-ld: warning: orphan section `.data.rel.ro' from `arch/powerpc/kernel/head_44x.o' being placed in section `.data.rel.ro'.
>>> >> powerpc-linux-gnu-ld: warning: orphan section `.data.rel.ro' from `arch/powerpc/kernel/head_44x.o' being placed in section `.data.rel.ro'.
>>
>> Okay this is not caused by the above patch, it was just hiding it.
>> This should do the trick I think:
>> --
>> powerpc/32: Add .data.rel* sections explicitly
>>
>> Match powerpc/64 and include .data.rel* input sections in the .data output
>> section explicitly.
>>
>> This should solve the warning:
>>
>> powerpc-linux-gnu-ld: warning: orphan section `.data.rel.ro' from `arch/powerpc/kernel/head_44x.o' being placed in section `.data.rel.ro'.
>>
>> Reported-by: kbuild test robot <fengguang.wu@intel.com>
>> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
>
>
> I think this will go to the PPC tree.
Yeah I can take it.
> I will not touch this patch, but
> if necessary, please feel free to add
>
> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Thanks.
cheers
prev parent reply other threads:[~2017-11-14 10:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-10 15:41 kbuild test robot
2017-11-11 8:45 ` Nicholas Piggin
2017-11-13 15:14 ` Masahiro Yamada
2017-11-14 10:17 ` Michael Ellerman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760adw4dl.fsf@concordia.ellerman.id.au \
--to=mpe@ellerman.id.au \
--cc=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=npiggin@gmail.com \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®