From nobody Thu May 15 09:28:28 2025 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 1509066886088505.99337410874557; Thu, 26 Oct 2017 18:14:46 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 1B7B62034A886; Thu, 26 Oct 2017 18:10:53 -0700 (PDT) Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243]) (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 7BDA921CEB122 for ; Thu, 26 Oct 2017 18:10:49 -0700 (PDT) Received: by mail-lf0-x243.google.com with SMTP id 90so5655102lfs.13 for ; Thu, 26 Oct 2017 18:14:36 -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 m9sm1675702ljb.61.2017.10.26.18.14.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 18:14:33 -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::243; helo=mail-lf0-x243.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=c2fyQgv2Z5WT0KL9Kq9Fe8K5V0Zyqvytvrut+0OQ5J0=; b=V9bIAmvubMSKTI3cyyPLPVPhl9am/hG7nLDvvAIFBPTu3l466ZKre2lfjnbmp49Ubx coIG+S9XIQIheaMn+8/TKEmxcYFaPR/c0Yf0wWlE2RlRNb+tAQ0vmBdjvr3txajsrbmj RHRAQm+TpZsI7A8j+ADViIc/Wjk2oZYDXFxo5AxNKdJE9NKk8A4caFQGING+QRgc6RGZ DErE2KHuwrZGlQ5SzhkyNAClu2Rz77dUsDrkEG0d8CRV+tqsHcjh/84/difzC/3lSs6d D8u+EshKVH0oWG7syqfslO2VsB/RCSIwDpUE+aXrX4WBJ2IQBlURHTCe58OvXqJ82N00 55uQ== 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=c2fyQgv2Z5WT0KL9Kq9Fe8K5V0Zyqvytvrut+0OQ5J0=; b=PcwdZuA4vojLTJhaPv8PKGUCJVJnSxNk4iGuEvesmwpFR6IYGAI3r5amc38k4M1C3X D2BTldJQ8F8w299REMiAAPZGXZ35WzO23m6GAHNHCQKd7FRhz4li2/7S38eFqZz456as dgjvdqrVnn+ZGNQZdnIEuq+TkEYGcIjB+zScZKHr43rtfomBsuNQMlkOdhZJXdO2eV3e 7l8Qmg/usixLpqfSpzBWLtSyCU4+t4GC20WE1sicX7Z771143jFb4Sk1uSJucY/SDskt W4+Fy9D2biwwIsgRC1taTfM9EUMp77J6xPBESgMQKdAYcXz2eksjR/WEDRwP1m5Ho2d8 kyVA== X-Gm-Message-State: AMCzsaVOMACeGe3pFxgWRxjx0wzQjM/2PiHyk8wCXRTGVVIgQUyjzAXK qBNExxaN96rycYYU+IaYuq/XwE+pieo= X-Google-Smtp-Source: ABhQp+QracqsFNdiTrNojjEzvJk6HXy7y0il3+2EB/flOVkeD5tjfY+vUI4j3PhiAhHDoDFYbNLaiw== X-Received: by 10.46.66.198 with SMTP id h67mr10545534ljf.108.1509066874261; Thu, 26 Oct 2017 18:14:34 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Fri, 27 Oct 2017 03:13:47 +0200 Message-Id: <1509066832-5285-6-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509066832-5285-1-git-send-email-mw@semihalf.com> References: <1509066832-5285-1-git-send-email-mw@semihalf.com> Subject: [edk2] [platforms: PATCH v2 05/10] Marvell/Library: MppLib: Disable the stack protector 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 MppLib may be used very early (in SEC), at which point stack protection measures are more likely to cause harm than help, given that not even the UART has been configured to the point where we can complain usefully. So just disable it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Signed-off-by: Marcin Wojtas Reviewed-by: Leif Lindholm --- Platform/Marvell/Library/MppLib/MppLib.inf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Platform/Marvell/Library/MppLib/MppLib.inf b/Platform/Marvell/= Library/MppLib/MppLib.inf index 2de9cd0..1268542 100644 --- a/Platform/Marvell/Library/MppLib/MppLib.inf +++ b/Platform/Marvell/Library/MppLib/MppLib.inf @@ -106,3 +106,6 @@ gMarvellTokenSpaceGuid.PcdChip3MppSel7 =20 gMarvellTokenSpaceGuid.PcdPciESdhci + +[BuildOptions] + *_*_*_CC_FLAGS =3D -fno-stack-protector --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel