From patchwork Mon Feb 12 11:19:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vladimir Murzin X-Patchwork-Id: 10213041 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 6789E60329 for ; Mon, 12 Feb 2018 13:43:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5686428C74 for ; Mon, 12 Feb 2018 13:43:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B0E428C76; Mon, 12 Feb 2018 13:43:43 +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 casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 47C6228C74 for ; Mon, 12 Feb 2018 13:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=fkn18g6WRlhLSnDbm60BRSIFcM6oVDLTJ3VMG8B8RMc=; b=SoQ0G1E/+pbOiK4UeyCm4pVL+ g7HjA6awLIUlSlD00iFby3nUEQ/ixvBnFRfCSRmSjiHwi4yuNxnDViiOX+bUL1Pcj9UQbIHCdbTNa luwKSR4VXLUurazS7D4iVQEEc5dM9IuQ11JOG/DmVSih6JpuM8o5fCie84OAAltO6UtHju6AfZr3x hEgL8LvSleWZjRecXk7m2Ez5c46Tpyh3OL9SNqtWW0449+0uiOZtvTuaob2Q423LqMWRFIiYZmtym 6BuInXRHyfpJCqwbKUUv5Nu4m4fhd0pRN2tdtp6BTBfxGFI7+0DKNT+hE7JunhQGG3tQlOBiQC0mA IH77TbCvQ==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elEOH-0000qG-9M for patchwork-linux-arm@patchwork.kernel.org; Mon, 12 Feb 2018 13:43:29 +0000 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=fkn18g6WRlhLSnDbm60BRSIFcM6oVDLTJ3VMG8B8RMc=; b=IWtUvkBFvrGhkM x8woylakpn38Zgmq0qoZUEVAOB6V6PNLua5CqGkPLZIwfwVWeHexJjTmz2ByazbyeDfLjiMr/MEZk Gsx7VVCQ7TjTaXeuRJb1mAN8KE5trJoTjSXSTCcSOWpCJF/wk6vIeS7rjjG2aBqvyVaa79VXlHAnA 02dEmDUiI4uTE7wScBdacqvrXzeBJeqTGk27WlPxB0Oz8EnWHARQBsopR3GIJEADnm8Mf/lFMpddW uno871U1S4635ybNUZD4Xu5QL9HNLOO81b07HbCW1E0r7/3xu+IwZXwIqo8cS3seIes19WC9DpIEK Zvvs9weBjuSOMcaaDI/g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elC9j-0006HR-45; Mon, 12 Feb 2018 11:20:19 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elC9f-0005Cy-Lf for linux-arm-kernel@lists.infradead.org; Mon, 12 Feb 2018 11:20:16 +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 D28A9165C; Mon, 12 Feb 2018 03:20:05 -0800 (PST) Received: from bc-e10-1-11.euhpc.arm.com. (bc-e10-1-11.euhpc.arm.com [10.6.12.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 97C6C3F487; Mon, 12 Feb 2018 03:20:04 -0800 (PST) From: Vladimir Murzin To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] ARM: NOMMU: Make _stext and _end meet PMSAv8 alignment restrictions Date: Mon, 12 Feb 2018 11:19:32 +0000 Message-Id: <1518434373-27907-4-git-send-email-vladimir.murzin@arm.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1518434373-27907-1-git-send-email-vladimir.murzin@arm.com> References: <1518434373-27907-1-git-send-email-vladimir.murzin@arm.com> MIME-Version: 1.0 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 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 require 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. Tested-by: Szemző András 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 84a1ae3..edcf07b 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<