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::244; helo=mail-lf0-x244.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) (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 C110221CEB12D for ; Fri, 27 Oct 2017 09:28:55 -0700 (PDT) Received: by mail-lf0-x244.google.com with SMTP id 75so8047600lfx.1 for ; Fri, 27 Oct 2017 09:32:43 -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=J5ck1PkO6llWm9lX7NiNGSd7Azsb1IEk3qTTgcpzmUoi+/dWqriPOGmQNaSxYDBTMa RThwOHH/nzY4efsoJBGyPtcW/DuTVkRceVPxzMuy4p51PcT7aQnvJBTVCTkqhs2Wj+0G k2eqLw0X/QlV5+E1WEy0dc50Jthd4UkDe2+OZNkWFhKG7K0HLGOr6d7T56mjT3bcQUYq MWaodQ/w3zETpB3WAJsY/YeIFNW5hMNWU8YrJJyZXjwJ8aHid2HXmroppC9omEOCH5Us Ulge2WsNSxpHn4wahm89vfdX3GmWzSS9jDie6TAv7jToIdhCkx0OOrneXXhtgnVk4Cbo 5e6g== 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=VVIls2Vv8ZNADy4kvGbyK2DbCz2DPoqdt3rxXjLcbymAPofTjJh53bljNdV2BLjLOx xYax5Ez2ahSqw3v/fSpu88JTJOVGQXE1ovRSUnEUy4AFO9DpjXmeztUrVgOn3RRVSF6L ga960vYWUh7eEaK0XR0dzNQlJcKiv46EHMPr1Jc1ukqQmp0gQDvVL/Lk6UVe/1becydc V2bKgZCBZ1LV+fHiJrNPnyblO+po7GAPqY/f8et4Ovz9NsQIDfz0WObK4B0sKzCYoO2r YWytnOQbQ4muf6iKdVxIbviTHEtyp46cQQjgMRCZE+X3XQRjor6T/9VNw77o3ZT5s4JJ RSGg== X-Gm-Message-State: AMCzsaV3x8CxFVYdgsNh+rjJPDKCpDIT4ho6Ewp57rQ7G8TvN4c98FUf 20WzeDK6Xtr0LGrFxiu3NLOwrdLDCvI= X-Google-Smtp-Source: ABhQp+T8F53rd3wPkChA1COhVYOteuwHFYE9yJK4UJRQ14t+cApRiHrRBU2f/Oq/h0Ti9w3+MpGK8A== X-Received: by 10.25.178.206 with SMTP id t75mr379236lfk.228.1509121961225; Fri, 27 Oct 2017 09:32:41 -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 h3sm1569222lfj.26.2017.10.27.09.32.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Oct 2017 09:32:40 -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: Fri, 27 Oct 2017 18:31:48 +0200 Message-Id: <1509121913-12937-6-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509121913-12937-1-git-send-email-mw@semihalf.com> References: <1509121913-12937-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v3 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: , X-List-Received-Date: Fri, 27 Oct 2017 16:28:56 -0000 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 gMarvellTokenSpaceGuid.PcdPciESdhci + +[BuildOptions] + *_*_*_CC_FLAGS = -fno-stack-protector -- 2.7.4