From patchwork Mon Oct 9 17:00:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 115269 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2765917qgn; Mon, 9 Oct 2017 09:54:20 -0700 (PDT) X-Received: by 10.99.127.94 with SMTP id p30mr9496585pgn.66.1507568060428; Mon, 09 Oct 2017 09:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507568060; cv=none; d=google.com; s=arc-20160816; b=ggwP+5iMmQAkJP6oY30iCDbuivgo6ycozSoda0Sty8zGyimoG3UXufJO3wuTgyLslr 4Ni6n5EFK/dI4vtVAenKijZmocNaDIRNDGn1fwa6HOjmJ7WEk6tl8vlgYIgfQGfNqLlv o2zxf9glx0O89jfaichzDFogG1y6NV5aUFy7CMwWVTCSzCyfCGkYEItvmp/34BvnKM81 nPakcakhojrucxX7DT9yDYfIyLIkZRmC6a4XjX//4COUvPFFCpYSlJfwVltL3Bxdaar/ QqUA2rMBwTmQin57IxZroXGteGj4PUKjoWVD5JZwlkhhbkckksCFWAdnz7N44i5SZhkQ KYEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=e+/hp1rmdxq/I3bYSog8uJSn5zloGdANqXO1xelihd8=; b=uV+boZcCVG93Qn78/6IoF4Tb7m8/JUmuvp0yCKEcSKwiipG3iWAr8Epq4NoUJZW9SE owcqhqjvYFWoa07nD8TUV0kTVF2BoK3JuDhNiPlS9CFcKghKudAcF6pBF5V/U+8lkzYS dPEXsNxQ+I67yR252cqnwJ6VLLQYDL5HCOZdRYqUp1GJtUVIBxlAUEAGXVORQacnxquH di/OX6yFfPcRa9eln01rgxoUHOUUTLJkjypXrL0+rq/Kw2V3blZFQbFWmCB6NjZspYmW MiLqi/aQQhqhCtiMvCfFqx1O8aylVOs3jJvlpKeFdk8YgSGSwlGOUwW1AJyJ3YJs5eVk 8saw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=T8hHAWIa; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id m30si709053pli.467.2017.10.09.09.54.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2017 09:54:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=T8hHAWIa; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 6367B21EA15DF; Mon, 9 Oct 2017 09:50:45 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:4010:c07::22b; helo=mail-lf0-x22b.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6A93821EA15BA for ; Mon, 9 Oct 2017 09:50:44 -0700 (PDT) Received: by mail-lf0-x22b.google.com with SMTP id 75so664690lfx.1 for ; Mon, 09 Oct 2017 09:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n8QDShp+Oaxhbw9WR9alMZeqHewJz0depNLgztERpUQ=; b=T8hHAWIaI6EP/z8uB1lJN6tKWI+t4W3Ts19SaQtX8sQj358MYBPoFI/He6pGP9hbaj S8v2ixXIVwOa1Jykf0jbxl5m6/xKNWgJPJHCDX/RdaVrVZPYUHpp5iV1fTGxrOvCzIkx wgR9sSc9bXYqb6Q+16/B6XqqRcFnz+cgxyvOFWepXX5DBs4j/DrTZOqNZ6dEATJMAdHu cnmiyy6ziaVw3NYGSG0fncqv79yKxwDWcOODcOcFcO9rGvzHOYctlewAmbsB3UHzDlH5 Wr5l6QVA+UM5kOPaTVLSv4Bb91c4XngUilDvEj5PkjnofF9IKNzLF2NBeN+If3AGG38A SapA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=n8QDShp+Oaxhbw9WR9alMZeqHewJz0depNLgztERpUQ=; b=QhycrkP7I/Z/DW7VFV7dqWFntJRwqju7sqp/oiD2DMtDJUYj1xM6zn3RMWXxwNsEKJ wPcOZktaHxIqWptl27NO3dE4nEciZfpozJFloz3as1dxgW9jMl+R43WrV8JxGehyLT79 YMGGElJTGgxza+7GTtx7iKCLG3NU1RVYM8kGIz/2AbYtQ97a6Bd7Kw+KsrpzoRfFq+S0 zv//YrQqlUdsMZTdMxUWrfvhIJLmYjh+flaBNWh0cdyE/80Zv1etzJN57mRfi1j6aNuo VssmeNBQrTSfUGURtG9nQHIPLn8hv4P9RNLe6sS1RFszZbUHXwkRjhJYnYDd4+d6Q5Z7 l+Tg== X-Gm-Message-State: AMCzsaWTNQhPer9fVp6W3E+47gu5Vf+aNC86WZdFnFO6sBKFOwzMUG94 MnQC2pQks7Avut/hjAM3vD9d1gBCdOY= X-Google-Smtp-Source: AOwi7QBRWSlprayWZPLrH2qbpYaKxIClGoUFqEx6or5AZueHdS9UHwXVf1MDgc4cQay6aquNAXDpRg== X-Received: by 10.46.97.17 with SMTP id v17mr5641385ljb.155.1507568049690; Mon, 09 Oct 2017 09:54:09 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id z204sm1421490lff.33.2017.10.09.09.54.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2017 09:54:08 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Mon, 9 Oct 2017 19:00:54 +0200 Message-Id: <1507568462-28775-6-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1507568462-28775-1-git-send-email-mw@semihalf.com> References: <1507568462-28775-1-git-send-email-mw@semihalf.com> Subject: [edk2] [platforms: PATCH 05/13] Marvell/Armada: Use 4k/64k aligned sections for DXE/DXE-rt modules X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jinghua@marvell.com, ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Ard Biesheuvel Enable strict memory protection at boot time and under the OS, by using 4 KB section alignment for DXE_DRIVER, UEFI_DRIVER and UEFI_APPLICATION modules, and 64 KB alignment for DXE_RUNTIME_DRIVER modules. Note that the latter is mandated by the UEFI spec. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Signed-off-by: Marcin Wojtas --- Platform/Marvell/Armada/Armada.dsc.inc | 6 ++++++ 1 file changed, 6 insertions(+) -- 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/Platform/Marvell/Armada/Armada.dsc.inc b/Platform/Marvell/Armada/Armada.dsc.inc index 433892e..1b4e713 100644 --- a/Platform/Marvell/Armada/Armada.dsc.inc +++ b/Platform/Marvell/Armada/Armada.dsc.inc @@ -486,6 +486,12 @@ gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000 } +[BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION] + GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 + +[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] + GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x10000 + ################################################################################ # # Defines - platform description macros