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::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 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: 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: [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: , X-List-Received-Date: Mon, 09 Oct 2017 16:50:44 -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 --- 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 -- 1.8.3.1