From nobody Thu Dec 26 01:08:00 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 1507716972206126.37485167022828; Wed, 11 Oct 2017 03:16:12 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 99AE721FC7487; Wed, 11 Oct 2017 03:12:38 -0700 (PDT) Received: from mail-lf0-x22e.google.com (mail-lf0-x22e.google.com [IPv6:2a00:1450:4010:c07::22e]) (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 803EF21EA15DA for ; Wed, 11 Oct 2017 03:12:36 -0700 (PDT) Received: by mail-lf0-x22e.google.com with SMTP id c82so1485827lfc.6 for ; Wed, 11 Oct 2017 03:16:05 -0700 (PDT) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id 84sm1539781ljc.67.2017.10.11.03.16.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Oct 2017 03:16:03 -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::22e; helo=mail-lf0-x22e.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=9ZrWZyQ5ZafqO4LV0B47zKmpbv4zRwnmPrs2dc1FoKE=; b=xsHNMkeT4bxUaOrAgehZi57XBvwJ8Z7sp0DTeyQHrqRuWygShIlzHLyws05c6mF4sM pabuWyr5g0nibhSyVbfJTefl2Em6gqFxTbjctsfb5LMj4JkGKQiMdkTS8WSeO/6SV698 woXL40a9eDc0p2Wmy0kUv8i/Yt9+5BCToIds8kA+bdmvbdtIE4H5JC2IYfMbk5/JWMl8 f3YgMT/yTss0yRydyhlCPDg+z6HyhKt9yAQX1ZNVa6aTeBPzpTtMtMbr9vuGWr8QyRnF F0RNHR6Y71KkzdCCysKZQpis2qgFXPlwW79ktpPmMq+rAYkvOF2jHQwqBEW1nzH3SaaJ Rajg== 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=9ZrWZyQ5ZafqO4LV0B47zKmpbv4zRwnmPrs2dc1FoKE=; b=R1cBF14dwNT+J9qqOckCLVZrD9wuolseM2fPBDjN8nXu8LiP8hZGWzT8xmIskMWg6T XacDKuNjm40aoKZC0VckV1FMckkzsOYr50NnBAdHF0ZhPA7ruWNOaAGdy2e2/m72rgB8 o8kk/DTtGnIVsI1JbbEB9fy0PQEv1wsFYEOTxUaCPTj5162kbfhH0zR1Tsc1m1btR9VM b45EUMhcECMXK6PM4uvI6EplGc5Q66EWUtstCuIDSU6+KJtBNZ04GFB19itJifnE5RVL 7eK+vxwKy4GCnlVWSum7lF6kqEV87J2K3h7o4SBbVYwFcQmDpig/0hcvLCADK6cWxow1 hZ4g== X-Gm-Message-State: AMCzsaX3smg0mUKGvGtnbKNDkxDC36xN0MCMeqV/MhVBKnpgwzXAGwr3 PxAgz8PPGNbA0JY+NuTDEVby6VTOkNA= X-Google-Smtp-Source: AOwi7QDgn/HGCnLtu6zSlaTJR+drDGblvqPXWli/IdndJ5CSu4/rhTmBL7nom9KCXYSVy92CCfIaCQ== X-Received: by 10.25.80.68 with SMTP id z4mr5859102lfj.112.1507716963851; Wed, 11 Oct 2017 03:16:03 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Wed, 11 Oct 2017 12:15:31 +0200 Message-Id: <1507716939-31798-5-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507716939-31798-1-git-send-email-mw@semihalf.com> References: <1507716939-31798-1-git-send-email-mw@semihalf.com> Subject: [edk2] [platforms: PATCH v2 04/12] 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 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel