From: Thomas Huth <thuth@redhat.com>
To: "Janosch Frank" <frankja@linux.ibm.com>,
"Claudio Imbrenda" <imbrenda@linux.ibm.com>,
"Nico Böhr" <nrb@linux.ibm.com>
Cc: David Hildenbrand <david@redhat.com>,
linux-s390@vger.kernel.org, kvm@vger.kernel.org
Subject: [kvm-unit-tests PATCH] s390x: Align __bss_end to a halfword boundary
Date: Fri, 23 Jun 2023 11:39:41 +0200 [thread overview]
Message-ID: <20230623093941.448147-1-thuth@redhat.com> (raw)
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>
---
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 = .;
--
2.39.3
next reply other threads:[~2023-06-23 9:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-23 9:39 Thomas Huth [this message]
2023-06-26 15:34 ` [kvm-unit-tests PATCH] s390x: Align __bss_end to a halfword boundary Claudio Imbrenda
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=20230623093941.448147-1-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=david@redhat.com \
--cc=frankja@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=nrb@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