From nobody Sun May 19 15:20:10 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+92908+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+92908+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1661765340; cv=none; d=zohomail.com; s=zohoarc; b=PV6bisdGcdu7f0pCeKMxh9zotIdb4e0/fAUR/z5IswHHufVDgsxSiGr8hrgFXlZTfgLghTegk+Xq6s8nqLS+NUcQ5nLvWURdnbAq2mwGBjkTUCzFwBoXzMecgyYiNkxGn9nq7K/ZkAe+u31tWvplU+Blyj6U5e41kvUfF61A0x0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1661765340; 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=AesNWIP6NcoeEa7Ix+IL28r9+1i0cuTucqlDc2Sm0ec=; b=R5kTE2KJRgyv+OYaEivljbQPmhHyEdOJQ5ErZVEzgYRWwF7bk984NF0POdezUW3q8eUYPBY8NTzjxt2dvVSsqIpzyyRE52mI+VxkGqmzXHBCWQ8lXRYQWtNRDO22NRpn1Brtsg620s2JnWqJvq57TpHlf2dXeHEbMKpZ1j6Uyoo= 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+92908+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 166176534046220.58309195745619; Mon, 29 Aug 2022 02:29:00 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id lnnxYY1788612xQcgsMrVhNh; Mon, 29 Aug 2022 02:29:00 -0700 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web09.68427.1661765339140350608 for ; Mon, 29 Aug 2022 02:28:59 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10453"; a="295629637" X-IronPort-AV: E=Sophos;i="5.93,272,1654585200"; d="scan'208";a="295629637" X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 02:28:58 -0700 X-IronPort-AV: E=Sophos;i="5.93,272,1654585200"; d="scan'208";a="562159239" X-Received: from tedkuo1-win10.gar.corp.intel.com ([10.5.215.13]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 02:28:56 -0700 From: "Kuo, Ted" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen , Lee Hamel Subject: [edk2-devel][PATCH v1] BaseTools: 64bit FSP FV map file cannot be created correctly Date: Mon, 29 Aug 2022 17:28:17 +0800 Message-Id: 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,ted.kuo@intel.com X-Gm-Message-State: Txu826xrjMlxuXuVmPoP4Tddx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1661765340; bh=zJwgg0zhudISkQO01Ov5xrNVi2aj14NLzQY0yhoUVA0=; h=Cc:Date:From:Reply-To:Subject:To; b=S7v+FT2OVVBm/Tq5YAqwjfHzMoMttUoQohX7z6N1ZMpqBEbdObF4WiBJT2BX9ZfEaW7 RFB3q71cbFBtAmQYbDTUbukLhOYoyqVDZjl9+IyO1sTySUwkDkWsqZeuBu0P+iWHPphKd KDIxxR1lwstMNvxTxh+g1RpIPVUaOiYbm30= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1661765342551100011 Content-Type: text/plain; charset="utf-8" https://bugzilla.tianocore.org/show_bug.cgi?id=3D4035 64bit FSP FV map file cannot be created correctly when using CLANG compiler. When compiling 64bit FSP with CLANG, there is no prefix symbol '_' added to function name. Hence FSP FV map file cannot be created properly. Updated the if condition for CLANG in GenFv to get the issue fixed. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Cc: Lee Hamel Signed-off-by: Ted Kuo Reviewed-by: Bob Feng --- BaseTools/Source/C/GenFv/GenFvInternalLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/C/GenFv/GenFvInternalLib.c b/BaseTools/Source= /C/GenFv/GenFvInternalLib.c index d650a527a5..d28ac8f6eb 100644 --- a/BaseTools/Source/C/GenFv/GenFvInternalLib.c +++ b/BaseTools/Source/C/GenFv/GenFvInternalLib.c @@ -1004,7 +1004,7 @@ Returns: if (IsUseClang) { sscanf (Line, "%llx %s %s %s", &TempLongAddress, KeyWord, KeyWord2= , FunctionTypeName); FunctionAddress =3D (UINT64) TempLongAddress; - if (FunctionTypeName [0] =3D=3D '_' ) { + if (FunctionTypeName [0] !=3D '/' && FunctionTypeName [0] !=3D '.'= && FunctionTypeName [1] !=3D ':') { fprintf (FvMapFile, " 0x%010llx ", (unsigned long long) (Ima= geBaseAddress + FunctionAddress - LinkTimeBaseAddress)); fprintf (FvMapFile, "%s\n", FunctionTypeName); } --=20 2.35.3.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 (#92908): https://edk2.groups.io/g/devel/message/92908 Mute This Topic: https://groups.io/mt/93322647/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-