Re: [PATCH v5 10/10] s390: vmlinux.lds.S: Reorder sections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 24, 2025 at 10:50 PM Alexey Gladkov <legion@xxxxxxxxxx> wrote:
>
> Reorder the sections to be placed in the default segment. The
> .vmlinux.info use :NONE to override the default segment and tell the
> linker to not put the section in any segment at all.
>
> >> s390x-linux-ld: .tmp_vmlinux1: warning: allocated section `.modinfo' not in segment
> >> s390x-linux-ld: .tmp_vmlinux2: warning: allocated section `.modinfo' not in segment
> >> s390x-linux-ld: vmlinux.unstripped: warning: allocated section `.modinfo' not in segment

Thank you for root-causing!



> Cc: Heiko Carstens <hca@xxxxxxxxxxxxx>
> Cc: Vasily Gorbik <gor@xxxxxxxxxxxxx>
> Cc: Alexander Gordeev <agordeev@xxxxxxxxxxxxx>
> Cc: linux-s390@xxxxxxxxxxxxxxx


Hi s390 maintainers,
I need this patch for kbuild tree.
Ack is appreciated.


> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202506062053.zbkFBEnJ-lkp@xxxxxxxxx/
> Signed-off-by: Alexey Gladkov <legion@xxxxxxxxxx>
> ---
>  arch/s390/kernel/vmlinux.lds.S | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S
> index ff1ddba96352..3f2f90e38808 100644
> --- a/arch/s390/kernel/vmlinux.lds.S
> +++ b/arch/s390/kernel/vmlinux.lds.S
> @@ -202,6 +202,11 @@ SECTIONS
>         . = ALIGN(PAGE_SIZE);
>         _end = . ;
>
> +       /* Debugging sections.  */
> +       STABS_DEBUG
> +       DWARF_DEBUG
> +       ELF_DETAILS
> +
>         /*
>          * uncompressed image info used by the decompressor
>          * it should match struct vmlinux_info
> @@ -232,11 +237,6 @@ SECTIONS
>  #endif
>         } :NONE
>
> -       /* Debugging sections.  */
> -       STABS_DEBUG
> -       DWARF_DEBUG
> -       ELF_DETAILS
> -
>         /*
>          * Make sure that the .got.plt is either completely empty or it
>          * contains only the three reserved double words.
> --
> 2.50.1
>


-- 
Best Regards
Masahiro Yamada





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux