From nobody Sun Apr 28 22:49:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+100746+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+100746+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1678123543; cv=none; d=zohomail.com; s=zohoarc; b=NF4QoENkS17jjgoVnve4RDdeQM+GFZ1b1nVVnAXbfhvUyNdrV5eCbGKvykMyV09Ede4zcxYLz7wpuckoxAsYsJsSeuX6sMnm8w6DEWrciVlaEYzVxTpiTS99YbncH5kYiBd6Jd3Ch4ucG4In8WXGkBn5qxgcCJj5Yhxo2rk5nOc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1678123543; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=0aPfQf32cWUI6ZGq5Qhd64kySZwCej63LGveZaK25m0=; b=lB4HFaQZzWlNxc/Y42NjapM+6i6dE0AubDT3reHXMgVUYqfZDFE5B0hx8jZ8aQs7hZVZOB32pTiGAxmbQRmiQvJpWWrxqdha/ZHg0i7Tznn9+2BEunUJgbXvB7WYAdG+bUQM8sUpRzzQ4AIWoRe/HORDA1vtxw3cO9q8+QQokxQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+100746+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1678123543818537.2299474305672; Mon, 6 Mar 2023 09:25:43 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 8kglYY1788612xPnEOkdAwId; Mon, 06 Mar 2023 09:25:43 -0800 X-Received: from mailbox.box.xen0n.name (mailbox.box.xen0n.name [115.28.160.31]) by mx.groups.io with SMTP id smtpd.web11.3676.1677991297956625016 for ; Sat, 04 Mar 2023 20:41:38 -0800 X-Received: from ld50.lan (unknown [114.93.192.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 09B926010B; Sun, 5 Mar 2023 12:41:31 +0800 (CST) From: WANG Xuerui To: devel@edk2.groups.io Cc: WANG Xuerui , Bibo Mao , Xianglai li , Chao Li , Leif Lindholm , Michael D Kinney Subject: [edk2-devel] [PATCH] Platform/Loongson: Allow building with stack protector support Date: Sun, 5 Mar 2023 12:40:35 +0800 Message-Id: <20230305044035.476989-1-git@xen0n.name> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,git@xen0n.name X-Gm-Message-State: F376PPFLgt3omXbQUDBFXQBvx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1678123543; bh=tD+KbbxH18PlaoJiH61u5AdrCvxldpMKe/iA09nTb/0=; h=Cc:Date:From:Reply-To:Subject:To; b=ACiVgl2FFO2kOlbfc4P6jn/mTc+h8SWilafa6s4gkeJXQNPEznJDQV94FYhEEPtLvg5 tAO6/9JfkeNcHPEIN9QlfurousrdqcbWRZ/o6tzH0PnQio45bX9te2qRUqPFnFrv1pU6H j+VIYRiLL+E5mGON09sM6cGO1pa9V1Wi9uo= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1678123544936100007 Content-Type: text/plain; charset="utf-8" Some toolchains have stack protection enabled by default, so without the appropriate library included the build will fail with missing symbols during link. Cc: Bibo Mao Cc: Xianglai li Cc: Chao Li Cc: Leif Lindholm Cc: Michael D Kinney Signed-off-by: WANG Xuerui Reviewed-by: Chao Li Reviewed-by: Xianglai Li --- Platform/Loongson/LoongArchQemuPkg/Loongson.dsc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc b/Platform/Loo= ngson/LoongArchQemuPkg/Loongson.dsc index d1162519cd..465e9229a2 100644 --- a/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc +++ b/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc @@ -95,6 +95,9 @@ TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf !endif =20 + # For stack protector support + NULL | MdePkg/Library/BaseStackCheckLib/Base= StackCheckLib.inf + BaseLib | MdePkg/Library/BaseLib/BaseLib.inf SafeIntLib | MdePkg/Library/BaseSafeIntLib/BaseSaf= eIntLib.inf TimeBaseLib | EmbeddedPkg/Library/TimeBaseLib/TimeB= aseLib.inf --=20 2.39.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100746): https://edk2.groups.io/g/devel/message/100746 Mute This Topic: https://groups.io/mt/97430342/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-