From patchwork Tue Mar 7 11:24:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 94973 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp1839931qgd; Tue, 7 Mar 2017 03:25:04 -0800 (PST) X-Received: by 10.84.133.193 with SMTP id f59mr34015638plf.64.1488885904496; Tue, 07 Mar 2017 03:25:04 -0800 (PST) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id g17si12556710pgj.222.2017.03.07.03.25.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Mar 2017 03:25:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D46548034D; Tue, 7 Mar 2017 03:25:03 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::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 373C68034C for ; Tue, 7 Mar 2017 03:25:02 -0800 (PST) Received: by mail-wm0-x22e.google.com with SMTP id n11so86922314wma.1 for ; Tue, 07 Mar 2017 03:25:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=UfR9MqKnA5Qkoh7whYgFgFRYfBffB9XKe0jaYy3e/8A=; b=FZ8CV3QPcRKi1Uxo7LlaTcOzVeUSTOj5aKVzzBCfvDNJM1gAq4EvXhSevvaZoWM4se 9o6x0WG69YIQqJYwgK86Ow3ZJ1Ob8lB7VVHuMDGkvNpGnhha+TOeRv8K4bcqloUEe6vl NAz8wcUGg84ER+Jfvyh054552aZtJFbNZdb4A= 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; bh=UfR9MqKnA5Qkoh7whYgFgFRYfBffB9XKe0jaYy3e/8A=; b=J0cowL6ov/GYN5H8YkghhcUgIVVoNchA//9plH59fnCz93ZZKCKv9a+jgwFeVMLlrA j6rFmpZ1+2k2D7I2BoFRLCE9SuL9YZ2tCvUoviQ/l4r7n1KUA12rl0z49v9fhnujMPEA Yi4PfqnpUiujf0E9Yf2P3Jz8P11RUQlh/gQyG07wfqFe5O+DA49R6VeWNFQzWo6zqvG5 j351v5juoXikUTBtAxFRVXSKayygvqo6wJr8HzfBZCVwhOHrDp3Y6WWPLVrCab0Ot0iL 9/LLYqCAFNbqDJ0hV70SbahfCwvRS6g/jzIyDTT+01mQDSjSIZcIcv6I5psBuwlB7V5H 4sBA== X-Gm-Message-State: AMke39kZqwP44sQOkHPC27/rPqjoW8EFP8GhZFNO2IyiJ74hVe/nfJXea93SHdv7xfzcWyRK X-Received: by 10.28.209.75 with SMTP id i72mr16605224wmg.31.1488885900457; Tue, 07 Mar 2017 03:25:00 -0800 (PST) Received: from ards-macbook-pro.c.hoisthospitality.com ([109.74.56.122]) by smtp.gmail.com with ESMTPSA id e6sm30700106wrc.30.2017.03.07.03.24.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Mar 2017 03:24:59 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, lersek@redhat.com Date: Tue, 7 Mar 2017 12:24:57 +0100 Message-Id: <1488885897-10345-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [edk2] [PATCH] ArmVirtPkg: apply PE/COFF memory protection to DxeCore as well X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Include DXE_CORE in the BuildOptions that are set to force 4 KB section alignment for PE/COFF images in order to allow them to be mapped with strict memory permissions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/ArmVirt.dsc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Laszlo Ersek diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc index e2d3dcce7945..f61fd0680612 100644 --- a/ArmVirtPkg/ArmVirt.dsc.inc +++ b/ArmVirtPkg/ArmVirt.dsc.inc @@ -17,7 +17,7 @@ [Defines] DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F DEFINE TTY_TERMINAL = FALSE -[BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION] +[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]