From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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) 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) 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) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com, jinghua@marvell.com, mw@semihalf.com, jsd@semihalf.com 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: [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: , X-List-Received-Date: Wed, 11 Oct 2017 10:12:36 -0000 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/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 -- 2.7.4