From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::232; helo=mail-wm0-x232.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (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 DB65A21F3C1AE for ; Tue, 10 Oct 2017 07:41:16 -0700 (PDT) Received: by mail-wm0-x232.google.com with SMTP id u138so6082847wmu.4 for ; Tue, 10 Oct 2017 07:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=z5yuX8zME1tbc6w4awVl9iZCXlBbFB8ghC81Y0d8bo8=; b=O4PP2A87E1I+7L767jA5rNSX5S5ylJETBdGyUg5rmf2fv3bAqo1DMJ+e44ll47tKXn TrrbEAa2AXLm3SXt7b8CmXWQlXAjaac47VcdC6iD4I/mhS2R97by8cH6rO00H9GfRgYk ZcKcLu3Myu8HoiKiqukaC36798hdhC7+2NBeE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=z5yuX8zME1tbc6w4awVl9iZCXlBbFB8ghC81Y0d8bo8=; b=dOJXO3M2yoKcmpesu0wuc2yNkbUNbykv7p1fDPlWcTE9o1taJkrH3VBk/3/DaX60xT FQKaBTcHJnosxYlE0M9WC+PwkMeFnHP7jCLl2wkjmzhd3C1r4pFLtIzK4S/MICGgW4s8 pnl/tMa2HZvA7kJ9mMxKP0RE5cUpaYExej7958ZGnn6GAr+c/cBcowZiQrAhXBm7QtfR GtNGyEa047a96KntEXn2TRDuZZsda+JOpOqZi+8oGzdzrPeia7JKVMXyXxRjpoIildOi GUMxiQRbSN7LQ9reDDMYjPJ3M59CjIHkXqgziOGxyFR2COZQNBgE7Qa+nFdow2VPy2CK Ik+w== X-Gm-Message-State: AMCzsaVLFIy+VSxDnJXSF0orSTLhVKK+1NE5bTXK6jkPAv3URLcGjTd3 vRtJ6qp5oEb9pBFyDxnd92l1yg== X-Google-Smtp-Source: AOwi7QDsiuKKwt9Cz3X8IfF+UgBIfWq5v9fk3DuAlMLHxP2kYDrhFu4cSPQYg30+JHr0PYAaPF0I/w== X-Received: by 10.28.174.67 with SMTP id x64mr12744782wme.82.1507646683673; Tue, 10 Oct 2017 07:44:43 -0700 (PDT) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id k18sm6830823wrg.35.2017.10.10.07.44.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Oct 2017 07:44:42 -0700 (PDT) Date: Tue, 10 Oct 2017 15:44:40 +0100 From: Leif Lindholm To: Marcin Wojtas Cc: edk2-devel@lists.01.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com, jinghua@marvell.com, jsd@semihalf.com Message-ID: <20171010144440.4dzmp43lmdu3bkri@bivouac.eciton.net> References: <1507568462-28775-1-git-send-email-mw@semihalf.com> <1507568462-28775-6-git-send-email-mw@semihalf.com> MIME-Version: 1.0 In-Reply-To: <1507568462-28775-6-git-send-email-mw@semihalf.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [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: Tue, 10 Oct 2017 14:41:17 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Oct 09, 2017 at 07:00:54PM +0200, Marcin Wojtas wrote: > 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 > -- > 1.8.3.1 >