From patchwork Wed Dec 13 17:02:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Murzin X-Patchwork-Id: 10110441 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8B87E602B3 for ; Wed, 13 Dec 2017 17:14:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72D3728A8D for ; Wed, 13 Dec 2017 17:14:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6693228CE0; Wed, 13 Dec 2017 17:14:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D9C5528AE7 for ; Wed, 13 Dec 2017 17:14:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Pou9CuSgiVHXONjpkFxV5Pu89AFRRT/K47E7GhMROJM=; b=AZqOVWu5OOLtC/pC2fOlCsjJqr y80qr/OX6sak+C6CL1ruB6Ss+sWz9TIit8qysR8xwTsEVwqCaaUIvxkcemxmNPJE+3oc4C9ZLDqqX VPgzhYJCKdjl5XwhBWfWrbydfgpKpBdiSLCfSY3Uo9Rei0Uxt38b/sr6u+JC/gJcQT8X9IAbsEcPP k4+eBquEDevac1WqDJcir9D0XNi2YqvFQe0hX8xXFNCK11QdDpbPsMnG/n9S82Q1CRxUTAxyZjuwK igtGDzjRW1RWrx3j6nCLUYcumFeDOWRDVjJhFGPdNyOwsh4kE860aAcRMzWqG4LfJ6Gdtimxto619 xBF09EzA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePAc1-0006op-Vc; Wed, 13 Dec 2017 17:14:30 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePAQg-0005Jn-99 for linux-arm-kernel@lists.infradead.org; Wed, 13 Dec 2017 17:02:52 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A1B1F1610; Wed, 13 Dec 2017 09:02:31 -0800 (PST) Received: from login2.euhpc.arm.com (login2.euhpc.arm.com [10.6.26.144]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 704D13F246; Wed, 13 Dec 2017 09:02:30 -0800 (PST) From: Vladimir Murzin To: linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 4/5] ARM: NOMMU: Make _stext and _end meet PMSAv8 alignment restrictions Date: Wed, 13 Dec 2017 17:02:06 +0000 Message-Id: <1513184527-44120-5-git-send-email-vladimir.murzin@arm.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1513184527-44120-1-git-send-email-vladimir.murzin@arm.com> References: <1513184527-44120-1-git-send-email-vladimir.murzin@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171213_090246_508936_46155DE8 X-CRM114-Status: UNSURE ( 6.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kbuild-all@01.org, alexandre.torgue@st.com, linux@armlinux.org.uk, arnd@arndb.de, sza@esh.hu MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP PMSAv8 requires addresses to be either 32 (for M-class) or 64 bytes (for R-class) aligned. To keep it simple align to 64 bytes always. For XIP we already have alignment restrictions in place from PMSAv7, but they can be potentially relaxed for PMSAv8. Signed-off-by: Vladimir Murzin --- arch/arm/kernel/vmlinux.lds.S | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index ee53f65..a4643a2 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -8,6 +8,8 @@ #include "vmlinux-xip.lds.S" #else +#include + #include #include #include @@ -102,6 +104,9 @@ SECTIONS . = ALIGN(1<