From nobody Tue Apr 16 04:07:01 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+81933+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+81933+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1634182184; cv=none; d=zohomail.com; s=zohoarc; b=X26izK1RQKy5iBF+NREhLbdLtTPr3xWIhVuyWiH9DTJ+hj5n8SUqZ4pUnuUCQ0I/jGkrn/tH4NvqrdBTS3Mzchd4BREHagcz4m9d1E7wT+gAchVCuFOIpaKX7OVzmp/cbx7fmHBG74DaI6XQysVEC2qLC7omqnQ//MZ1099EwLM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634182184; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=796FfD+az8Jt/r6cF3++KrQFGZCLjC9Kh5g1xoYO8Xo=; b=gx5Ir1siDONH1C5ohuojM5zREH5T+gSLkOvqxMQsRpCgKm4OWB0e7EzBQAGxNiCr0YARNAVZJeQyIPfrQ1ewrZluKCVLI7qEjwXWhbJ9KSSfKdyk07iQKpEpGfo/cE0XNS3MXe+p+YZdLpaMOALw5oiQ5rvDMuUG2ZTU6CvYG3M= 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+81933+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1634182184391687.1434431590238; Wed, 13 Oct 2021 20:29:44 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id oBGLYY1788612xVFuKaI3mcO; Wed, 13 Oct 2021 20:29:44 -0700 X-Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web09.4441.1634181171085037265 for ; Wed, 13 Oct 2021 20:12:52 -0700 X-IronPort-AV: E=McAfee;i="6200,9189,10136"; a="227547031" X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="227547031" X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 20:12:52 -0700 X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="524889862" X-Received: from jiyangyx-mobl.ccr.corp.intel.com ([10.249.173.13]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 20:12:49 -0700 From: "Jiyang Yang" To: devel@edk2.groups.io Cc: Jiyang Yang , Ard Biesheuvel , Sami Mujawar , Jiewen Yao , Supreeth Venkatesh , Vitaly Cheptsov , =?UTF-8?q?Marvin=20H=C3=A4user?= , Steven Shi Subject: [edk2-devel] [PATCH v1 1/1] StandaloneMmPkg: To support CLANGPDB build Date: Thu, 14 Oct 2021 11:12:35 +0800 Message-Id: <20211014031235.1839-2-jiyangx.yang@intel.com> In-Reply-To: <20211014031235.1839-1-jiyangx.yang@intel.com> References: <20211014031235.1839-1-jiyangx.yang@intel.com> 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,jiyangx.yang@intel.com X-Gm-Message-State: sFEU660Sxto76K5vD5mH2hPix1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1634182184; bh=vhLn9GcgplPiqWPBthve0rzaAlL62OvRjTdoT7TEH6A=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=SLF5+HkBvM00U992Jyl4dQ/HUu/jxm8JASWMco5y6vgOzB23HIujsV59pqAJ/lQHCns gNGCqd/EjOFMuHdftwGUM1jVQ+0XLmBS+zfmebJTieHA/tNg1iVZQflJq8SDLl6nwGq3+ nfKo6jKYwi8Z/hYM2zk/Fn4rJKsQ9rQ53M0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1634182185467100003 Content-Type: text/plain; charset="utf-8" the flag "-fpie" is passed for all builds with a GCC family toolchain, including CLANGPDB, but CLANGPDB does not support this flag, it will report "clang: error: unsupported option '-fpie' for target 'x86_64-unknown-windows-gnu'". So we add the CLANGPDB option "-fno-pie" later to overwrite it. Cc: Ard Biesheuvel Cc: Sami Mujawar Cc: Jiewen Yao Cc: Supreeth Venkatesh Cc: Vitaly Cheptsov Cc: Marvin H=C3=A4user Cc: Steven Shi Signed-off-by: Jiyang Yang --- StandaloneMmPkg/Core/StandaloneMmCore.inf = | 2 ++ StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPo= int.inf | 1 + 2 files changed, 3 insertions(+) diff --git a/StandaloneMmPkg/Core/StandaloneMmCore.inf b/StandaloneMmPkg/Co= re/StandaloneMmCore.inf index 56042b7b39f4..3213142523f4 100644 --- a/StandaloneMmPkg/Core/StandaloneMmCore.inf +++ b/StandaloneMmPkg/Core/StandaloneMmCore.inf @@ -79,3 +79,5 @@ [BuildOptions] GCC:*_*_*_CC_FLAGS =3D -fpie GCC:*_*_*_DLINK_FLAGS =3D -Wl,-z,text,-Bsymbolic,-pie + CLANGPDB:*_*_*_CC_FLAGS =3D -fno-pie + CLANGPDB:*_*_*_DLINK_FLAGS =3D diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneM= mCoreEntryPoint.inf b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/St= andaloneMmCoreEntryPoint.inf index 1762586cfa02..ef69e07d2c07 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEn= tryPoint.inf +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEn= tryPoint.inf @@ -56,3 +56,4 @@ =20 [BuildOptions] GCC:*_*_*_CC_FLAGS =3D -fpie + CLANGPDB:*_*_*_CC_FLAGS =3D -fno-pie --=20 2.26.2.windows.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 (#81933): https://edk2.groups.io/g/devel/message/81933 Mute This Topic: https://groups.io/mt/86305054/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-