lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aba82b5a-c1a1-4062-bdbb-335bbcc59daf-agordeev@linux.ibm.com>
Date: Thu, 9 Oct 2025 13:37:14 +0200
From: Alexander Gordeev <agordeev@...ux.ibm.com>
To: Nathan Chancellor <nathan@...nel.org>
Cc: Nicolas Schier <nsc@...nel.org>, Alexey Gladkov <legion@...nel.org>,
        Masahiro Yamada <masahiroy@...nel.org>, linux-kbuild@...r.kernel.org,
        linux-kernel@...r.kernel.org, Heiko Carstens <hca@...ux.ibm.com>,
        Vasily Gorbik <gor@...ux.ibm.com>,
        Christian Borntraeger <borntraeger@...ux.ibm.com>,
        Sven Schnelle <svens@...ux.ibm.com>, linux-s390@...r.kernel.org
Subject: Re: [PATCH 3/3] s390/vmlinux.lds.S: Move .vmlinux.info to end of
 allocatable sections

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@...nel.org>
> ---
> Cc: Heiko Carstens <hca@...ux.ibm.com>
> Cc: Vasily Gorbik <gor@...ux.ibm.com>
> Cc: Alexander Gordeev <agordeev@...ux.ibm.com>
> Cc: Christian Borntraeger <borntraeger@...ux.ibm.com>
> Cc: Sven Schnelle <svens@...ux.ibm.com>
> Cc: linux-s390@...r.kernel.org
> ---
>  arch/s390/kernel/vmlinux.lds.S | 44 +++++++++++++++++++++---------------------
>  1 file changed, 22 insertions(+), 22 deletions(-)

Acked-by: Alexander Gordeev <agordeev@...ux.ibm.com>

Thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ