public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Claudio Imbrenda <imbrenda@linux.ibm.com>
To: Thomas Huth <thuth@redhat.com>
Cc: "Janosch Frank" <frankja@linux.ibm.com>,
	"Nico Böhr" <nrb@linux.ibm.com>,
	"David Hildenbrand" <david@redhat.com>,
	linux-s390@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [kvm-unit-tests PATCH] s390x: Align __bss_end to a halfword boundary
Date: Mon, 26 Jun 2023 17:34:17 +0200	[thread overview]
Message-ID: <20230626173417.6b6b70cd@p-imbrenda> (raw)
In-Reply-To: <20230623093941.448147-1-thuth@redhat.com>

On Fri, 23 Jun 2023 11:39:41 +0200
Thomas Huth <thuth@redhat.com> wrote:

> We are using the "larl" instruction to load the address of __bss_end,
> and this instruction can only deal with even addresses, so we have
> to make sure that this symbol is aligned accordingly. Otherwise this
> will cause a failure with the new binutils 2.40 and Clang:
> 
>  /usr/bin/ld: s390x/cstart64.o(.init+0x6a): misaligned symbol `__bss_end'
>               (0x2c0d1) for relocation R_390_PC32DBL
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

> ---
>  s390x/flat.lds.S | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/s390x/flat.lds.S b/s390x/flat.lds.S
> index 0cb7e383..5e91ecac 100644
> --- a/s390x/flat.lds.S
> +++ b/s390x/flat.lds.S
> @@ -37,6 +37,7 @@ SECTIONS
>  	. = ALIGN(16);
>  	__bss_start = .;
>  	.bss : { *(.bss) }
> +	. = ALIGN(2);
>  	__bss_end = .;
>  	. = ALIGN(4K);
>  	edata = .;


      reply	other threads:[~2023-06-26 15:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-23  9:39 [kvm-unit-tests PATCH] s390x: Align __bss_end to a halfword boundary Thomas Huth
2023-06-26 15:34 ` Claudio Imbrenda [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=20230626173417.6b6b70cd@p-imbrenda \
    --to=imbrenda@linux.ibm.com \
    --cc=david@redhat.com \
    --cc=frankja@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=nrb@linux.ibm.com \
    --cc=thuth@redhat.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