From patchwork Fri Oct 27 01:13:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 117278 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp185855qgn; Thu, 26 Oct 2017 18:14:45 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QyjcFMJ+UK5Ql1AEv/lGBl1Jh1KvhPrBtX9Ykn/C54gNBupostvnODVXGKvzjElk0ZEPqZ X-Received: by 10.84.168.69 with SMTP id e63mr5816339plb.340.1509066885201; Thu, 26 Oct 2017 18:14:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509066885; cv=none; d=google.com; s=arc-20160816; b=CADU2hnb1J9Z5UVDs7NBoEdsxbjOMklQyDbPUVyTJnOuXPrSV2Wz03ppcxgr6+2DFZ jFY4kxQGqgLeGET0W/oaqlk9tvi4lmS/bclwLQYfWYp+q+YYFtHhWYdKMFI5PaYygVDo DhkQoVc+HeaNghgKNS9gUHN+5tnhVqImZQgIXonZ8mfycQ8Pe+ZcRVdkmYTOM+5yzXHP 71/wJZYmuWrbAyjwsGcbmtwWwbyvpJqJQziKQumJUK8n1PYgf/x4ALWNsis26uOEf538 djnGU5rzUTguv/GMsfJ4duq0Jd3bw/jlXvTBCuSpKVIUdwiHCx58KD70QLNSe8dCPhX4 zdNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=6sSi3/WmsSVCLQDA6kqLfWhDefprR3YaKmLNbULmigA=; b=LwsFzb0LKwC/Gh+B2/U42Sxd8V/9zA0mZomSTsjRZWCEz1x1mlN2PUYC305Xa+6Dth 5hha832M6QCj/7ws1vqlxAxk86vOr540q+VET75OVGPtadGgTX/EZ6E25SNfCTpZBsrF M5DpY6/G4NOGL9lUS/wBDfns0bPXe2x5YIOYdmyWiA83zYc7ku9yO95bxTMNIbyPvJkX GN+GUZB3cIYkNr1daBgnjV38lTIFo14d3S46N7dolgOxq2Khfa9njFoO5k42XwDyJ779 yCg9NqhRqYC/DR64RQv1EP6VUzvpaZKlkM5RFm6RzfQcXYJZ15qjGhqn3Ib2fmQkWdrC z7Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=V9bIAmvu; 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 Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id c6si38046pgq.243.2017.10.26.18.14.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 18:14:45 -0700 (PDT) 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=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=V9bIAmvu; 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 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) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.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 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) 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-Received: by 10.46.66.198 with SMTP id h67mr10545534ljf.108.1509066874261; Thu, 26 Oct 2017 18:14:34 -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) 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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(+) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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 gMarvellTokenSpaceGuid.PcdPciESdhci + +[BuildOptions] + *_*_*_CC_FLAGS = -fno-stack-protector