From nobody Sun Apr 28 15:18:52 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+66685+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+66685+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1603862048; cv=none; d=zohomail.com; s=zohoarc; b=IutDfNDsNGP64s9APE6mJmc5hLiZKA2+AtcWCmPTbFhiGZ6wV0jWU/YvHtU9VeNM4OBSCZ6Fit0qDY3I+cYsSPsrp6mZJ/jvI0Ec0fDwScwnmFqU131KhBqxKEBZDrOwAHvFqARo5HhabcBXdOQjIr98J/DtbRrybP6ty64/Sjc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603862048; 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=cYfbH+xdhwCweopCk3gOlIHB50X8FvUWd6U+Ruo5Q6o=; b=VXSRBv3pC/dAIGKJHpdUBNjq1gII6NIMAx02GBV475nJcIUg7TTglWAmoxkfHiS8CSJGbjuG3WA1b+ZkNmMwR6vwvhnzUgpqz0KYAI4ayYeYPUo1YuMIX3lWROMSGdxzhhjjLb1Q+wtgLTh7AU8sq1JOBc3xhFomZwFSdHzgNcU= 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+66685+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1603862048894767.5554821162783; Tue, 27 Oct 2020 22:14:08 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id eIUEYY1788612xQ4WKFC2A4F; Tue, 27 Oct 2020 22:14:08 -0700 X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web09.4363.1603862033032677669 for ; Tue, 27 Oct 2020 22:13:54 -0700 X-Received: from localhost.localdomain ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Wed, 28 Oct 2020 13:13:43 +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 1/2] BaseTools: Add image type into generate map file Date: Wed, 28 Oct 2020 13:13:17 +0800 Message-Id: <20201028051318.1075-2-fengyunhua@byosoft.com.cn> In-Reply-To: <20201028051318.1075-1-fengyunhua@byosoft.com.cn> References: <20201028051318.1075-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: bkDqI4KfWYbVwwn4sjxxKjaJx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1603862048; bh=Qlb/LeoHzDyWR6Y2boOpEYLsWQ6cV6f+19JlmknbQ7A=; h=Cc:Date:From:Reply-To:Subject:To; b=I7aqWuE13xjeV03Uwta8InOOJg62G/U7JoKPXJ1WDAwkV1EBhpQk425jK+3wa6Zv26V Oe4qWmDnwbXKg2E20fP/HjYd3d+undwUtmkIlkpTYheqAEsPBdf0Dkktmvn/s9FYWSlLM XLUyPdbszynVO+VP4VQtqCZx5d6DqnALIvE= 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 --- 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 (#66685): https://edk2.groups.io/g/devel/message/66685 Mute This Topic: https://groups.io/mt/77856690/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 Sun Apr 28 15:18:52 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+66686+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+66686+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1603862050; cv=none; d=zohomail.com; s=zohoarc; b=g4hpEK12S00BT3X9bV4aake7EEwXs3XDlj1CgqCUo7R0etQXTP/MiC8+eyBg1FrzV7mKrisKVnWmAe4oubPIsGKXCziuEbTEjuzSOw82UwxTpiN8c17J1OocNRIsxYZUvcaX6alHmwWVi3eOgx+5rK+orO53oHcgmaWqthUbHdA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603862050; 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=cLb7y1zd/Tr58+bEE4bTjQO3iUb8nC9p4D5P0Q9+Qs0=; b=WFbLGcdVXD7IBMQh/sxjll2KJxxxJMoBCk2AgmcAbhFQx6wH8Uq1/55RVXFaqJgkmNheV1wvLfZQgDraZk13KD+fxkZ0T0fLO/Mj1mmYSfOmltYQ6CIh81xGI2kPK0KQvSD/ze19VIe4a5b71hE/fq6CWGJuhHdCQgfm0RkExAk= 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+66686+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1603862050394200.96296835037788; Tue, 27 Oct 2020 22:14:10 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id rW6BYY1788612xa6nftDLdxd; Tue, 27 Oct 2020 22:14:09 -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.4360.1603862043658422298 for ; Tue, 27 Oct 2020 22:14:04 -0700 X-Received: from localhost.localdomain ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Wed, 28 Oct 2020 13:13:54 +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 2/2] BaseTools: update report map file format Date: Wed, 28 Oct 2020 13:13:18 +0800 Message-Id: <20201028051318.1075-3-fengyunhua@byosoft.com.cn> In-Reply-To: <20201028051318.1075-1-fengyunhua@byosoft.com.cn> References: <20201028051318.1075-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: 0oe4pbuTIaFUvspmawlb1jqJx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1603862049; bh=d9cIP8dFg/J1+bQcBscKKlUpCWMhzZzhSc2TDs1CVTo=; h=Cc:Date:From:Reply-To:Subject:To; b=mZ2NXRW4wTWd4+j7ipIbEJ0s1wCZKka18xn/mmriWklrYmDcy6uvFoXzpu++z/yLrf+ /RKOV6NzHAZB7qjzX35NPDT1AaHAvHS6dXGthOKyId4X1XcBI2xpj70xKY7mhhGrZYn+0 P4idEhJlf1gCVDIy/fBM2rNgFrC+rIWOzFw= 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..57701ec3e3 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*\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 (#66686): https://edk2.groups.io/g/devel/message/66686 Mute This Topic: https://groups.io/mt/77856693/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-