From nobody Sat May 11 23:30:50 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+66806+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66806+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1604029211; cv=none; d=zohomail.com; s=zohoarc; b=MjtmHet5ewFpKaLg4yNqyMGW7MVt8BHO/s1cKmuFVMYtHyoSx/9EmGzKdKtdhb++uf0Tihvnji8lj55pwd6UH29+9pcfWutsNPBhfTith2CmMH9npDfZiG+dFoubBlKWVwsfnohLkWhchUiBidvybid09sS1MWBY4s+eXXyVwq8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604029211; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=BMa38y3yYs1czVxMIK+ErKuKmtULR/kU6oPpoO+N53s=; b=KykvyH49c8GbPJXAsslmtTD6jGMOs9bNvJRGYh0eZRjeQUEHZBuGdZi0JVgG61Cv9NnjBvMATYZtFL+66lgGnEcL/wJJ6r4/0o07pfw9CHNBVh8ZEZdLxLLxgY2YrQX5TXJ8Hv3vaaAGGplhg5PVIOPfKHshuMlFEk4tCYPOfN0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66806+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1604029211269770.6130478906579; Thu, 29 Oct 2020 20:40:11 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id IqPIYY1788612xFFhGlHEIry; Thu, 29 Oct 2020 20:40:10 -0700 X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web10.8647.1604029210045876017 for ; Thu, 29 Oct 2020 20:40:10 -0700 X-Received: from localhost.localdomain ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 30 Oct 2020 11:39:59 +0800 X-WM-Sender: fengyunhua@byosoft.com.cn From: "fengyunhua" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: [edk2-devel] [PATCH v2 1/2] BaseTools: Add image type into generate map file Date: Fri, 30 Oct 2020 11:39:38 +0800 Message-Id: <20201030033939.2094-2-fengyunhua@byosoft.com.cn> In-Reply-To: <20201030033939.2094-1-fengyunhua@byosoft.com.cn> References: <20201030033939.2094-1-fengyunhua@byosoft.com.cn> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,fengyunhua@byosoft.com.cn X-Gm-Message-State: ZKHog9sAyELunkcRHiYgbqlcx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1604029210; bh=ou/2ZDmF63XQz/QdoNGexRNw5ZRFQXPg7WN5PI5Z7rk=; h=Cc:Date:From:Reply-To:Subject:To; b=YY/ZYcjSm0LSQz3ImLAqnK978W17OaE13odjCjtgSMCmeugD4iwk4blSfkjgLz3yTVg NbVTi8UNAtgBNzfghzs5aKqU8J/WHEhfqbwOpdnR4TdWGHIDKaN9H7NLso9X2/Q21FVl/ f+E/FqcEZjNxu0L0FxcqXGeZaTd7GcbqqFM= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2977 For a source-level BIOS debugger the .map files are quite useful with one major shortcoming: the debugger cannot know, solely from the .map file, the format (PE/COFF vs. TE) of the image included in the final BIOS ROM Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Yunhua Feng Reviewed-by: Bob Feng --- BaseTools/Source/C/GenFv/GenFvInternalLib.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/C/GenFv/GenFvInternalLib.c b/BaseTools/Source= /C/GenFv/GenFvInternalLib.c index b5ffed93a9..6e296b8ad6 100644 --- a/BaseTools/Source/C/GenFv/GenFvInternalLib.c +++ b/BaseTools/Source/C/GenFv/GenFvInternalLib.c @@ -903,7 +903,12 @@ Returns: fprintf (FvMapFile, "BaseAddress=3D0x%010llx, ", (unsigned long long) = (ImageBaseAddress + Offset)); } =20 - fprintf (FvMapFile, "EntryPoint=3D0x%010llx", (unsigned long long) (Imag= eBaseAddress + AddressOfEntryPoint)); + fprintf (FvMapFile, "EntryPoint=3D0x%010llx, ", (unsigned long long) (Im= ageBaseAddress + AddressOfEntryPoint)); + if (!pImageContext->IsTeImage) { + fprintf (FvMapFile, "Type=3DPE"); + } else { + fprintf (FvMapFile, "Type=3DTE"); + } fprintf (FvMapFile, ")\n"); =20 fprintf (FvMapFile, "(GUID=3D%s", FileGuidName); --=20 2.27.0.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 (#66806): https://edk2.groups.io/g/devel/message/66806 Mute This Topic: https://groups.io/mt/77904704/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- From nobody Sat May 11 23:30:50 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+66807+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66807+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1604029222; cv=none; d=zohomail.com; s=zohoarc; b=ny/HFc1PdYVqh1lZuLElDZpta/A4AtYSg8Vu07Z5f9rEAC7NbaqAAOIfFhgY9vQlQQebtDKWsi5q5MmmTBkzFf6oJ02e9nCAzvJRdjA0ILRJRZjb6erUSFjyUhD8H3ge1vo8wGV63PPrT79SXen2gSwGMc07bDk5ROEtmQfnxlc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604029222; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=CYUq2DOdOdGMDwVtWxW2bh4sO2PiOHzMSTTH+kegwkQ=; b=B118cX8LZk+RfWO4Is/FfdvyRyvoFahTfkUG8ZhAzucAnKWr8j26iA2ab2c9GH0t7RU6x3JmRZ5fYzmt0mYOpNEthQW7b+byH4UHTM0WcZUsyaPy8SepgObGGeu5o6oL5H/ohTsVM9gczWzMX0kxaPeXXdMcRKKkY/kfO/mSTGk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66807+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1604029222342386.0046243143429; Thu, 29 Oct 2020 20:40:22 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id NiIrYY1788612xIyE2ZRxAbt; Thu, 29 Oct 2020 20:40:21 -0700 X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web11.8466.1604029216220311780 for ; Thu, 29 Oct 2020 20:40:16 -0700 X-Received: from localhost.localdomain ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 30 Oct 2020 11:40:06 +0800 X-WM-Sender: fengyunhua@byosoft.com.cn From: "fengyunhua" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: [edk2-devel] [PATCH v2 2/2] BaseTools: update report map file format Date: Fri, 30 Oct 2020 11:39:39 +0800 Message-Id: <20201030033939.2094-3-fengyunhua@byosoft.com.cn> In-Reply-To: <20201030033939.2094-1-fengyunhua@byosoft.com.cn> References: <20201030033939.2094-1-fengyunhua@byosoft.com.cn> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,fengyunhua@byosoft.com.cn X-Gm-Message-State: Q9Azhuu0umLRNqvqVsqRDRbbx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1604029221; bh=UxCkb2huX4SyO2qe7DY7IFu7jmPh8RvwphVfqe7wAho=; h=Cc:Date:From:Reply-To:Subject:To; b=bGbrd2dhfumITeMvAzch1LJL57+YCLF2YspjJATTaVm24Tt/vEf7sBhfsjUaIWoIx/P q/lifRauRX468nBm4ok2zhmTQRFHpEK0fg7ZWSZV1YzruuGBUCINmYpgB/DKBc+UsU6Cq /yVkoS2WtWs0WXaFyrfRI0AgE0BL2LmEEro= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" update report map file format Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Yunhua Feng --- BaseTools/Source/Python/build/BuildReport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Sourc= e/Python/build/BuildReport.py index 8efa869162..330234e5af 100644 --- a/BaseTools/Source/Python/build/BuildReport.py +++ b/BaseTools/Source/Python/build/BuildReport.py @@ -60,7 +60,7 @@ gPcdGuidPattern =3D re.compile(r"PCD\((\w+)[.](\w+)\)") gOffsetGuidPattern =3D re.compile(r"(0x[0-9A-Fa-f]+) ([-A-Fa-f0-9]+)") =20 ## Pattern to find module base address and entry point in fixed flash map = file -gModulePattern =3D r"\n[-\w]+\s*\(([^,]+),\s*BaseAddress=3D%(Address)s,\s*= EntryPoint=3D%(Address)s\)\s*\(GUID=3D([-0-9A-Fa-f]+)[^)]*\)" +gModulePattern =3D r"\n[-\w]+\s*\(([^,]+),\s*BaseAddress=3D%(Address)s,\s*= EntryPoint=3D%(Address)s,\s*Type=3D\w+\)\s*\(GUID=3D([-0-9A-Fa-f]+)[^)]*\)" gMapFileItemPattern =3D re.compile(gModulePattern % {"Address" : "(-?0[xX]= [0-9A-Fa-f]+)"}) =20 ## Pattern to find all module referenced header files in source files --=20 2.27.0.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 (#66807): https://edk2.groups.io/g/devel/message/66807 Mute This Topic: https://groups.io/mt/77904708/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-