From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61B04C433DF for ; Mon, 17 Aug 2020 18:05:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4594C2072E for ; Mon, 17 Aug 2020 18:05:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597687514; bh=HmyTzhTls7OPRFBV1qexzdJejBvb5zN+sUdMNAOl0Wc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=WahWn6Fh8idhwISY+JhoEUg8R4mBRiVRPMpwnlH6fip/u7KOgtb09CS4shkPjQ6Kq VY4laHlWmzf3oTbVnOPLQIjAX81p1mLZ/7hGoyYlukO/HJVkXFiMKMtV+R/NoBfTpb 3HLAvCzlNbW91nDbGnboWsdozQINfblFE3Dd6TPI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390201AbgHQSFG (ORCPT ); Mon, 17 Aug 2020 14:05:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:33300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388513AbgHQQJf (ORCPT ); Mon, 17 Aug 2020 12:09:35 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4117822BF5; Mon, 17 Aug 2020 16:09:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680574; bh=HmyTzhTls7OPRFBV1qexzdJejBvb5zN+sUdMNAOl0Wc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zyP4horu/dyaVKHEwfKvw1aPyipRGltP3qWeSyrEnEe12dC0SoZGBzxsRbwA8MHMG 3F29aYiJVqJa5YQAvHFn8c9d3bGaQFR7YcZHmiB2ynlB636dCI2J50CXLidGzLKS+B TIZgTOmbjAsmwwsoRT4mZqkX436JxClHM2YLNUnU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Romain Naour , Andrew Morton , Alan Modra , Bin Meng , Chen Zhou , Geert Uytterhoeven , John Paul Adrian Glaubitz , Krzysztof Kozlowski , Kuninori Morimoto , Rich Felker , Sam Ravnborg , Yoshinori Sato , Arnd Bergmann , Linus Torvalds Subject: [PATCH 5.4 242/270] include/asm-generic/vmlinux.lds.h: align ro_after_init Date: Mon, 17 Aug 2020 17:17:23 +0200 Message-Id: <20200817143807.865851184@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Romain Naour commit 7f897acbe5d57995438c831670b7c400e9c0dc00 upstream. Since the patch [1], building the kernel using a toolchain built with binutils 2.33.1 prevents booting a sh4 system under Qemu. Apply the patch provided by Alan Modra [2] that fix alignment of rodata. [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ebd2263ba9a9124d93bbc0ece63d7e0fae89b40e [2] https://www.sourceware.org/ml/binutils/2019-12/msg00112.html Signed-off-by: Romain Naour Signed-off-by: Andrew Morton Cc: Alan Modra Cc: Bin Meng Cc: Chen Zhou Cc: Geert Uytterhoeven Cc: John Paul Adrian Glaubitz Cc: Krzysztof Kozlowski Cc: Kuninori Morimoto Cc: Rich Felker Cc: Sam Ravnborg Cc: Yoshinori Sato Cc: Arnd Bergmann Cc: Link: https://marc.info/?l=linux-sh&m=158429470221261 Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- include/asm-generic/vmlinux.lds.h | 1 + 1 file changed, 1 insertion(+) --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -340,6 +340,7 @@ */ #ifndef RO_AFTER_INIT_DATA #define RO_AFTER_INIT_DATA \ + . = ALIGN(8); \ __start_ro_after_init = .; \ *(.data..ro_after_init) \ JUMP_TABLE_DATA \