From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web09.4313.1663034293844087713 for ; Mon, 12 Sep 2022 18:58:14 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=nN2sj+az; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: bob.c.feng@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663034293; x=1694570293; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=S9NWVrAsix9JY7ZGd9D9cMGkbc2Irm4Ak8KLuKEdcc8=; b=nN2sj+azQjT5caz1HXLBPiVv0hoD2Ph2qlb/lh8pjznC2seVSBxBsAW4 TMsq5jxFH1BSGy37TI3olA2hXgJlyQhEoCF7KGvfkPn69SqP8+EA45ATx zHaOYs7rVArjBeWDAwqRrh9ojY861asUMW91HlpTrYBbTW0LoWHAuzCQE GFyl5QreBeMID2pWMJasZT1G6h4nTbKQJHOYbPBbK/T/URMI9Fj8n9F1P H4YBiWJ8Ame2C2TLSOCQovAQ35e9cy6IT6BpwiXS2gKzERRrNbq3hY91p c0HJJ8kmVwbIy/jtPtC2V+UH5DF5J9jrgcx03uolykwPAunnL0GmDl9VH A==; X-IronPort-AV: E=McAfee;i="6500,9779,10468"; a="295600368" X-IronPort-AV: E=Sophos;i="5.93,311,1654585200"; d="scan'208";a="295600368" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2022 18:58:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,311,1654585200"; d="scan'208";a="678353085" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga008.fm.intel.com with ESMTP; 12 Sep 2022 18:58:13 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 12 Sep 2022 18:58:12 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 12 Sep 2022 18:58:12 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 12 Sep 2022 18:58:12 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 12 Sep 2022 18:58:12 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XszpzOeZTOwtpH4798m3LpeV33QlwvMufU3Vm3CxtVZ1mhnMNR1Ffj6Oh3wAwUrRDmJkMDkQyPUI1jXIcGTIFC1lwLDS20NOzCW+E+dHO97tnlgBtwXPq42pBz34LkgO5l7RsfJny7gPvqww5DxUIevepOCDOxJXbU5wv4IjfnN+IeS2LFGNQZ81mlfk22yOP2tk/AegWzBKbRGWo6IriGp6bpMgmxCPUjEonZ0U7gnF9rFV6dEpWfJoP64snQwXL7TAX0/Lei6o2GF0Hbj/gIF4Ug90s99q5r0NF1JviWofugft6LbEx5qvrVbbn1pTXrKjv+F+6Tw5LBNm91CQAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=17ds1GN/9wtYVNHnUc/sq6/WYPpxNHuVt40QLeoPXHE=; b=Z8rklZkTHYABqhRSf4FTOcvimynk2UAekWU0sxybmEPfrBwmimZkLvn+WRszsKudncJVYPKnsUbQQzO+tL0cPFAxWc9zgGBuHg01d0HvPjIo/Z41wpsA6LOMM3I10qnlOuH0pqR4WmswE15ENMg8mf5Y4H9XsPjrFarB/YBKUCcmr6v+MNbe7pYe7iac+qDtNqXw3ibVoswbPdCKaoUFHOmZomYodkY6ET9m9f7Ug47IcaQVz4MXArrc46SExNIWn1AkDdMtsYIG7O2eiXNycS98ujaSj7RlKGFk5ALIs7VyOstkk6j42b+amS1Ixt0FrUhp76lLQDyYZ5XQEwwkPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from PH7PR11MB5863.namprd11.prod.outlook.com (2603:10b6:510:135::11) by CH0PR11MB5235.namprd11.prod.outlook.com (2603:10b6:610:e2::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.16; Tue, 13 Sep 2022 01:58:09 +0000 Received: from PH7PR11MB5863.namprd11.prod.outlook.com ([fe80::5c2f:d5a0:1e88:6322]) by PH7PR11MB5863.namprd11.prod.outlook.com ([fe80::5c2f:d5a0:1e88:6322%6]) with mapi id 15.20.5612.020; Tue, 13 Sep 2022 01:58:08 +0000 From: "Bob Feng" To: "Kuo, Ted" , "devel@edk2.groups.io" CC: "Gao, Liming" , "Chen, Christine" , "Hamel, Lee M" Subject: Re: [edk2-devel][PATCH v1] BaseTools: 64bit FSP FV map file cannot be created correctly Thread-Topic: [edk2-devel][PATCH v1] BaseTools: 64bit FSP FV map file cannot be created correctly Thread-Index: AQHYu4nHHCGDZxywPkOiJbVFDBqKkK3csWIw Date: Tue, 13 Sep 2022 01:58:08 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB5863:EE_|CH0PR11MB5235:EE_ x-ms-office365-filtering-correlation-id: ba729573-48c5-463e-eecd-08da952b67f8 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CjZGrgI0iZruFIrCb20YZ9CKv0os6tpXbhezR3h+NaMea7FXLen91CpghCQq8LYakF6Kn+/Y5NMX2FKKyb0bvn4Aj9dsMzqzzmYYP84kHilzHF8KFcj/qIUB8B6U2IJR/khtHasUL1DkxAK3MSvrLN1NOOzVP1TmBLjTofWQR/x1SzoDZ99f2HRtdSzF0u5ntYCqoIXTAHN8gtnXAzctececp/tW62cMT7CicydoxsXl9mMGT0RmNSYfpZeYG/OzhmuDcpHZ08CpGjqtZ3UwdYol9OeuT36s3xE7qEsSrp6Tzqq5BK2WVzKDSnN4sHkyZlqzWJ/jUyMfjLfeF97XISCMY5QB3ffyzl1GPqwkAdzu/6fZ7V+kH3/+WUlKLsmL254T932uplFKCwtDvmv+gtCK3lQ5k3FNuNrc8SSDio3MTpvkQA/CtdrjUp+Ld1tdZ1n0W1yAo/cdZfOI3Fmt6i5yoSUS7asTx7mkM6GrAzQmEwLcTDdiaLUEElqPzOla1PX1+Iz5eTq20ML1/YoDru6qBj5SNxtunmqegBzbD9JzC4goXkH5WbJY/fUromJDtR9jXOV6WwIqED5VreHbzqnLuVcvKU1HLYU90naVj+XmXOsBG4qeNKWX+z+UYIYs4pZ0wlq90IxS6Xy0L8wYl9ceSTWQJ8E4zl5O2O+CpMBnIEv+LHPeFbQ4C/KC9dl02UZSBNdKy7Z5US+EmJtIPBlMzUK06zYDobOsoCoAlRHC2W8qLHdyppZihlEp/MFdnws2xLy0N/QlUy4ZLtbqgQNdbG8xOlkycaq08ugNoH+OaxjM8aVk5s9+9VQrBj2/D50zV3pIcwmJijYJxf4khA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR11MB5863.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(366004)(136003)(346002)(39860400002)(376002)(451199015)(6506007)(38070700005)(8676002)(53546011)(2906002)(55016003)(33656002)(86362001)(186003)(76116006)(8936002)(110136005)(316002)(83380400001)(122000001)(7696005)(5660300002)(38100700002)(82960400001)(66556008)(64756008)(54906003)(66446008)(66476007)(52536014)(4326008)(107886003)(66946007)(71200400001)(9686003)(41300700001)(478600001)(966005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?WdZwdB1XgK5xQbmhHyu3jC2TcMX+pJI73mlIWlU1udyBFuo5s4QbKXFyKmxO?= =?us-ascii?Q?YU0MU65XzbeWTczMinir6cRcWH8HvLRHe3ymdGe852IpSocyarG771kUshnb?= =?us-ascii?Q?YI54C4Oypyk/CeYwFkdaIjdSxSeZrk3bngx+8yunvu1LMQuKKPpDG9SUff13?= =?us-ascii?Q?NJyrxhZNQclFv4jysphTATq7ocdAI1diS5zacVYml9koDKcbtG104FG/rnVt?= =?us-ascii?Q?aXlBLIJCDNJXPSsBDBoX1SF87E78D4m7svILfzgEttgKjqolFBsQ8bs5JYCo?= =?us-ascii?Q?1A5d7iffNy9cDyDaSUREiz9OjiRQm+LIxVeHvbI+Tc36dKaIwtMc3PWCPN5x?= =?us-ascii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3jVLBuu4?= =?us-ascii?Q?nQ14WlcajbhEi5XP6LdLfKszfUAVAWyXAiI4I/58DXtYke70a6LYbEiegfT2?= =?us-ascii?Q?soxSE1zNuA9/Wbn2V85rIuy6pOxF2nxAdKPxHnC/PErhsePKtrpi0TruVZOn?= =?us-ascii?Q?jCTVHENf+nNCQHXdOrRQKSmR/QP1Y3b41ZDdBqeUhrbYvyADr6wbsvQ5f7lH?= =?us-ascii?Q?jDmvnIyl6diPNguUnPTrSO6pXCaGx1q/YQtreG/wmhaL33xTs1/FipNxWaIJ?= =?us-ascii?Q?3FJxhKFzO98gzdYGLRIm0Jc8kGt0DxOWnLZbrU8Z4hisuRmk1k2hTJK2nfgt?= =?us-ascii?Q?77gSKk5uUT+k7nqiBOOGXVpGB+ZtPSURGkhsTRXL3wdR+FTqTTkLc0317F32?= =?us-ascii?Q?KwQhw8/ufzvgRWuHsj29hptzU8k48HoId5l8Ju13bOLh?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB5863.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba729573-48c5-463e-eecd-08da952b67f8 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2022 01:58:08.6221 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PsE91nwriIad1Rky9ZaAy5q+y9ST66/oNYRf+Tc1ewMG9UXqcmDRWYIGw/cM0EJFHFjl410JYg0zT/X+F5ENfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5235 Return-Path: bob.c.feng@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Bob Feng -----Original Message----- From: Kuo, Ted =20 Sent: Monday, August 29, 2022 5:28 PM To: devel@edk2.groups.io Cc: Feng, Bob C ; Gao, Liming ; Chen, Christine ; Hamel, Lee M Subject: [edk2-devel][PATCH v1] BaseTools: 64bit FSP FV map file cannot be = created correctly 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 --- 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", &TempLongAd= dress, KeyWord, KeyWord2, FunctionTypeName); FunctionAddress =3D (U= INT64) TempLongAddress;- if (FunctionTypeName [0] =3D=3D '_' ) {+ = if (FunctionTypeName [0] !=3D '/' && FunctionTypeName [0] !=3D '.' && = FunctionTypeName [1] !=3D ':') { fprintf (FvMapFile, " 0x%010llx= ", (unsigned long long) (ImageBaseAddress + FunctionAddress - LinkTimeB= aseAddress)); fprintf (FvMapFile, "%s\n", FunctionTypeName); = }--=20 2.35.3.windows.1