From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29905 invoked by alias); 21 Jan 2020 15:53:31 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 29711 invoked by uid 89); 21 Jan 2020 15:53:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.5 required=5.0 tests=AWL,BAYES_00,FORGED_SPF_HELO,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: sa-prd-fep-040.btinternet.com Received: from mailomta21-sa.btinternet.com (HELO sa-prd-fep-040.btinternet.com) (213.120.69.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Jan 2020 15:53:19 +0000 Received: from sa-prd-rgout-004.btmx-prd.synchronoss.net ([10.2.38.7]) by sa-prd-fep-040.btinternet.com with ESMTP id <20200121155316.XFNJ11798.sa-prd-fep-040.btinternet.com@sa-prd-rgout-004.btmx-prd.synchronoss.net>; Tue, 21 Jan 2020 15:53:16 +0000 Authentication-Results: btinternet.com; none X-OWM-Source-IP: 31.51.207.12 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean Received: from localhost.localdomain (31.51.207.12) by sa-prd-rgout-004.btmx-prd.synchronoss.net (5.8.337) (authenticated as jonturney@btinternet.com) id 5E1A2CBA01996E67; Tue, 21 Jan 2020 15:53:16 +0000 From: Jon Turney To: binutils@sourceware.org Cc: Jon Turney Subject: [PATCH 2/3] Add some new PE_IMAGE_DEBUG_TYPE values Date: Tue, 21 Jan 2020 15:53:00 -0000 Message-Id: <20200121155212.12686-3-jon.turney@dronecode.org.uk> In-Reply-To: <20200121155212.12686-1-jon.turney@dronecode.org.uk> References: <20200121155212.12686-1-jon.turney@dronecode.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SW-Source: 2020-01/txt/msg00302.txt.bz2 IMAGE_DEBUG_TYPE_REPRO is defined in the latest version of the PE specification [1]. The others are defined in Windows SDK headers and/or reported by DUMPBIN. [1] https://docs.microsoft.com/en-us/windows/win32/debug/pe-format bfd/ChangeLog: 2020-01-16 Jon Turney * peXXigen.c (debug_type_names): Add names for new debug data type values. include/ChangeLog: 2020-01-16 Jon Turney * coff/internal.h (PE_IMAGE_DEBUG_TYPE_VC_FEATURE) (PE_IMAGE_DEBUG_TYPE_POGO, PE_IMAGE_DEBUG_TYPE_ILTCG) (PE_IMAGE_DEBUG_TYPE_MPX, PE_IMAGE_DEBUG_TYPE_REPRO): Add. --- bfd/ChangeLog | 5 +++++ bfd/peXXigen.c | 7 ++++++- include/ChangeLog | 6 ++++++ include/coff/internal.h | 5 +++++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index ac0cf17464..dc7951f8d9 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -2603,7 +2603,7 @@ rsrc_print_section (bfd * abfd, void * vfile) return TRUE; } -#define IMAGE_NUMBEROF_DEBUG_TYPES 12 +#define IMAGE_NUMBEROF_DEBUG_TYPES 17 static char * debug_type_names[IMAGE_NUMBEROF_DEBUG_TYPES] = { @@ -2619,6 +2619,11 @@ static char * debug_type_names[IMAGE_NUMBEROF_DEBUG_TYPES] = "Borland", "Reserved", "CLSID", + "Feature", + "CoffGrp", + "ILTCG", + "MPX", + "Repro", }; static bfd_boolean diff --git a/include/coff/internal.h b/include/coff/internal.h index 24ac1dc75c..cbeb0160f6 100644 --- a/include/coff/internal.h +++ b/include/coff/internal.h @@ -157,6 +157,11 @@ struct internal_IMAGE_DEBUG_DIRECTORY #define PE_IMAGE_DEBUG_TYPE_BORLAND 9 #define PE_IMAGE_DEBUG_TYPE_RESERVED10 10 #define PE_IMAGE_DEBUG_TYPE_CLSID 11 +#define PE_IMAGE_DEBUG_TYPE_VC_FEATURE 12 +#define PE_IMAGE_DEBUG_TYPE_POGO 13 +#define PE_IMAGE_DEBUG_TYPE_ILTCG 14 +#define PE_IMAGE_DEBUG_TYPE_MPX 15 +#define PE_IMAGE_DEBUG_TYPE_REPRO 16 /* Extra structure for a codeview debug record */ #define CV_INFO_SIGNATURE_LENGTH 16 -- 2.21.0