From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id C5E0CD811A4 for ; Fri, 5 Jan 2024 15:38:36 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=RPPlk7Fr3Gs4hTrhvdYWxUhYs5czUDrw0SMQ+X4mllo=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1704469115; v=1; b=jIgfxxlq+UtmLOTOz/dntcoeMsUEg2J6xOaHxNUfsP3AL4wJ+QfbYFoUaOfaa4LJhaZmY7/0 HkMnCmXeuJz2KtFBIVCnFMG/KuIt0qO6Lwh1+vFpgSYy/P3gEeAc5eMQ6JeoZ0Gh3qEOrYLi1c7 RyAAUhXeMDE7mi7esf7n9h10= X-Received: by 127.0.0.2 with SMTP id nfF6YY7687511xOpWTHQSjcN; Fri, 05 Jan 2024 07:38:35 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.26228.1704469114792984826 for ; Fri, 05 Jan 2024 07:38:34 -0800 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CE2BAC15; Fri, 5 Jan 2024 07:39:20 -0800 (PST) X-Received: from usa.arm.com (a079755.arm.com [10.162.46.129]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B08743F7A6; Fri, 5 Jan 2024 07:38:32 -0800 (PST) From: "Prabin CA" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Prabin CA Subject: [edk2-devel] [edk2-platforms][PATCH v2 2/7] Platform/Sgi: add no-stack-protector flag for StMM builds Date: Fri, 5 Jan 2024 21:08:09 +0530 Message-Id: <20240105153814.427009-3-prabin.ca@arm.com> In-Reply-To: <20240105153814.427009-1-prabin.ca@arm.com> References: <20240105153814.427009-1-prabin.ca@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,prabin.ca@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: JkFzaUJvcT7Q03KU7On9FUxUx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=jIgfxxlq; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none) Add the no-stack-protector compiler flag to allow StandaloneMM builds on both AArch64 and x86 host. Without this flag, the link stage fails with the following errors on multiple files when built with gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0: undefined reference to `__stack_chk_guard' undefined reference to `__stack_chk_fail' Signed-off-by: Vijayenthiran Subramaniam Signed-off-by: Prabin CA --- Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc b/Platform/ARM/Sgi= Pkg/SgiPlatformMm.dsc.inc index ab54b3b25f4c..2a8c678c0816 100644 --- a/Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc +++ b/Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc @@ -145,5 +145,5 @@ [Components.AARCH64] # ########################################################################= ########################### [BuildOptions.AARCH64] - GCC:*_*_*_CC_FLAGS =3D -mstrict-align -march=3Darmv8-a -D DISABLE_NEW_= DEPRECATED_INTERFACES + GCC:*_*_*_CC_FLAGS =3D -mstrict-align -march=3Darmv8-a -fno-stack-prot= ector -D DISABLE_NEW_DEPRECATED_INTERFACES GCC:*_*_*_DLINK_FLAGS =3D -z common-page-size=3D0x1000 --=20 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113291): https://edk2.groups.io/g/devel/message/113291 Mute This Topic: https://groups.io/mt/103544564/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-