From nobody Thu Dec 26 01:52:31 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1507568061013114.19459771526033; Mon, 9 Oct 2017 09:54:21 -0700 (PDT) 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) 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) 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) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.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 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) 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 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Leif Lindholm --- Platform/Marvell/Armada/Armada.dsc.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Platform/Marvell/Armada/Armada.dsc.inc b/Platform/Marvell/Arma= da/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 } =20 +[BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,B= uildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICA= TION] + GCC:*_*_*_DLINK_FLAGS =3D -z common-page-size=3D0x1000 + +[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER] + GCC:*_*_*_DLINK_FLAGS =3D -z common-page-size=3D0x10000 + ##########################################################################= ###### # # Defines - platform description macros --=20 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel