From: Alexander Gordeev <agordeev@linux.ibm.com>
To: Nathan Chancellor <nathan@kernel.org>
Cc: Nicolas Schier <nsc@kernel.org>,
Alexey Gladkov <legion@kernel.org>,
Masahiro Yamada <masahiroy@kernel.org>,
linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
linux-s390@vger.kernel.org
Subject: Re: [PATCH 3/3] s390/vmlinux.lds.S: Move .vmlinux.info to end of allocatable sections
Date: Thu, 9 Oct 2025 13:37:14 +0200 [thread overview]
Message-ID: <aba82b5a-c1a1-4062-bdbb-335bbcc59daf-agordeev@linux.ibm.com> (raw)
In-Reply-To: <20251008-kbuild-fix-modinfo-regressions-v1-3-9fc776c5887c@kernel.org>
On Wed, Oct 08, 2025 at 03:46:46PM -0700, Nathan Chancellor wrote:
> When building s390 defconfig with binutils older than 2.32, there are
> several warnings during the final linking stage:
>
> s390-linux-ld: .tmp_vmlinux1: warning: allocated section `.got.plt' not in segment
> s390-linux-ld: .tmp_vmlinux2: warning: allocated section `.got.plt' not in segment
> s390-linux-ld: vmlinux.unstripped: warning: allocated section `.got.plt' not in segment
> s390-linux-objcopy: vmlinux: warning: allocated section `.got.plt' not in segment
> s390-linux-objcopy: st7afZyb: warning: allocated section `.got.plt' not in segment
>
> binutils commit afca762f598 ("S/390: Improve partial relro support for
> 64 bit") [1] in 2.32 changed where .got.plt is emitted, avoiding the
> warning.
>
> The :NONE in the .vmlinux.info output section description changes the
> segment for subsequent allocated sections. Move .vmlinux.info right
> above the discards section to place all other sections in the previously
> defined segment, .data.
>
> Fixes: 30226853d6ec ("s390: vmlinux.lds.S: explicitly handle '.got' and '.plt' sections")
> Link: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=afca762f598d453c563f244cd3777715b1a0cb72 [1]
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---
> Cc: Heiko Carstens <hca@linux.ibm.com>
> Cc: Vasily Gorbik <gor@linux.ibm.com>
> Cc: Alexander Gordeev <agordeev@linux.ibm.com>
> Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
> Cc: Sven Schnelle <svens@linux.ibm.com>
> Cc: linux-s390@vger.kernel.org
> ---
> arch/s390/kernel/vmlinux.lds.S | 44 +++++++++++++++++++++---------------------
> 1 file changed, 22 insertions(+), 22 deletions(-)
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Thanks!
next prev parent reply other threads:[~2025-10-09 11:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-08 22:46 [PATCH 0/3] kbuild: Fixes for fallout from recent modules.builtin.modinfo series Nathan Chancellor
2025-10-08 22:46 ` [PATCH 1/3] kbuild: Restore pattern to avoid stripping .rela.dyn from vmlinux Nathan Chancellor
2025-10-10 17:13 ` Ard Biesheuvel
2025-10-08 22:46 ` [PATCH 2/3] kbuild: Add '.rel.*' strip pattern for vmlinux Nathan Chancellor
2025-10-10 17:16 ` Ard Biesheuvel
2025-10-08 22:46 ` [PATCH 3/3] s390/vmlinux.lds.S: Move .vmlinux.info to end of allocatable sections Nathan Chancellor
2025-10-09 11:37 ` Alexander Gordeev [this message]
2025-10-09 19:44 ` [PATCH 0/3] kbuild: Fixes for fallout from recent modules.builtin.modinfo series Nicolas Schier
2025-10-10 7:19 ` Alexey Gladkov
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=aba82b5a-c1a1-4062-bdbb-335bbcc59daf-agordeev@linux.ibm.com \
--to=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=legion@kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=nathan@kernel.org \
--cc=nsc@kernel.org \
--cc=svens@linux.ibm.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®