From patchwork Fri Jun 23 09:39:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 13290185 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A2F0EB64D7 for ; Fri, 23 Jun 2023 09:40:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231591AbjFWJk2 (ORCPT ); Fri, 23 Jun 2023 05:40:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbjFWJk1 (ORCPT ); Fri, 23 Jun 2023 05:40:27 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C418EDC for ; Fri, 23 Jun 2023 02:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687513188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=gRyPsYNMsmn7yEoiSn1NbaSs0ga5/o0J6ddDdrg5+Vc=; b=FMJdetEIBmDWn+La2p2oi5fLZlhLGWHHQxTCcLbG6icpwP+iLz5ta2Ys8ik0r1dfZwfem6 Gyy1gA6gwnywXyS+dQIUo+Sv1x1DJhsGg69L7p5cYx6hEbdovR8qbgySFyKGSEZP4q9FFb QGVm+L0NEIiQfRxgL8YcTRPbW8b0fU4= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-17-F37DcmT1Md-rmuefAejvuA-1; Fri, 23 Jun 2023 05:39:46 -0400 X-MC-Unique: F37DcmT1Md-rmuefAejvuA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9D671380451B; Fri, 23 Jun 2023 09:39:45 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.208]) by smtp.corp.redhat.com (Postfix) with ESMTP id 291F3492B01; Fri, 23 Jun 2023 09:39:43 +0000 (UTC) From: Thomas Huth To: Janosch Frank , Claudio Imbrenda , =?utf-8?q?Nico_B=C3=B6hr?= Cc: David Hildenbrand , 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 Message-Id: <20230623093941.448147-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 Reviewed-by: Claudio Imbrenda --- 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 = .;