From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2056.outbound.protection.outlook.com [40.107.243.56]) by sourceware.org (Postfix) with ESMTPS id 0DCB43857835 for ; Mon, 6 Sep 2021 07:37:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0DCB43857835 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=klVoGSm+Uqjl0LHQymwwU8y3Ocxsl9yyEeAsbpw/HrOI1IcIEsJj91NLtYublwh4XPDm6psybVl9fKgsDB7hotzk7ASNBCHj0dGb5Ro5/EaXmnhRtx3GAi7gFq0hoAnxJAYlSWEOj2N9Qgqj1jIEeAH/pzYq2rTYQ77Wzy700s95JqDkFFlEH3C3o6gZCGGXGNxUPi1F7e5wpIyfYPWLZSd8jxpETOhOIXAfiEeNFQRfTA0Qri/uKz3Zizhon/729xRNydMKfA+5R1GUbvLI0sfpTkJBpTcQdf5h4OR9ErbybsDRtEmDJwpUjP3NM59z9ohkglY5vViQycV05bxWQQ== 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; bh=fCqvelHSa3gAHhV5G6Zh9WiFERI+jxsK0MAZWlIBBSQ=; b=gB/dOqVhhtO5FCr/3rgtkd1QaI5ZhVFk7jjCNEcNcuDkGbxa2uiQuK29FHom4WU5luW51AIFMpGjvTDR+thAk5QajmRpTGpJORaclHnqss8aT1apj19ACbQ8hRN/39M1chjKZYb2SkeogbcLceSnSZBX8GSz8DIn6cIB0+BQljfkWIIW0P2IWaymwBirho5C9m7EuSN2s51Cpgag7G+3jE8G1P50PfEQwQXBH/lORGUdIR+YMEd0qOQxbG1ewzUXb1LcBSKQD10lGThS+ZJA5XzA9wK1HQ3Z2Ocj8OIyW75ABAOnnmvhzWdDSzRm1ry8ytyClZFvCbs0L3SOesJwkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none Received: from CH0PR12MB5265.namprd12.prod.outlook.com (2603:10b6:610:d0::22) by CH2PR12MB5531.namprd12.prod.outlook.com (2603:10b6:610:34::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.17; Mon, 6 Sep 2021 07:37:11 +0000 Received: from CH0PR12MB5265.namprd12.prod.outlook.com ([fe80::f542:a9c5:f7c2:942]) by CH0PR12MB5265.namprd12.prod.outlook.com ([fe80::f542:a9c5:f7c2:942%5]) with mapi id 15.20.4478.025; Mon, 6 Sep 2021 07:37:11 +0000 From: "E, Nagajyothi" To: Mark Wielaard , "dwz@sourceware.org" , "vries@gcc.gnu.org" CC: "George, Jini Susan" , "Achra, Nitika" , "Sharma, Alok Kumar" , "E, Nagajyothi" Subject: [PING] [PATCH 2/2] Test script modifications to use llvm-dwarfdump when compiler is clang Thread-Topic: [PING] [PATCH 2/2] Test script modifications to use llvm-dwarfdump when compiler is clang Thread-Index: AdeZfjfhHjzwhSRiStWRuKFY32cXnQJc3S8A Date: Mon, 6 Sep 2021 07:37:11 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_Enabled=true; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_SetDate=2021-09-06T07:37:06Z; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_Method=Privileged; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_Name=Public-AIP 2.0; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_ActionId=ec703905-6ca1-4f08-9a9b-63273c66c8ae; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_ContentBits=1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e151889e-5e2b-4b34-462b-08d971092391 x-ms-traffictypediagnostic: CH2PR12MB5531: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1079; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5RU0IwPV1ClZUWz9YAJWXhJ0DyzZWeJbnAaqvLoLsZxiUMOKHOx+qyI3CMm/WI9M2rvT5eNQPGRNIvZOlibv4CN9WS/gInxCrGkWk50oXhmTckmncaYm69vTopFvpIftXc3GcyMB01fDlDwrnX0R12af95vdm4hL57cWA4XwI0nmt4TVFLhL9+3/oUH2vYr2BEZBdjryJx/Rb6LegDvwvGUADGn+40t/i9hnL//eg1TpvMCZo81bDrzw6uinUb8MHZQOvlCgKxegpd8gqSDwkhM034Y+AEGP+2zc03g0j3PLyeeoZkwqV8NLfN0pcAdXjJGQqrQgyUwAc6WuleYaech79uTHlVl8QLa6lpDFZayR7M3mi1KxJLOV+hbDmF3p0uAZjZL2AsK65JvThPE36cWG9vxamlg3em3LdEciwgh+RYK+K00XBkNkEQjTLmjFb+BPj+EGVUs3OvkT1U6certydHPwP4skL7TOMvAREp2HhgmWgLpFG+GxqsUa2MNEkn6c9TGZMlSmoO0kW/BVSaKBbExHKPUP/xu6iXLnH8ph7b43DACtdekRSdjG6XycsxzFpVyLblXKhZFqMtrhxlLUpESuyH+i82i/7IJLa4c3h5QPEkAg4RrJOHjT0IgLWvbwRzsKfxYVxpnyWwjfbZoAxKSIC/AG6TwO4oJVbFMzY1I9Pd9bk0hIBL6MdiD9bs57k4o2GIzTDNhZiFE9ZyZNzRU45Em0/BlEEKQWmscEUWv1KnYxF65WdBVWYcnW/+TyJX++Ln9q1BxgFQSdumYHVMMiFHJrNQ+pI7KSKHIrEP1z5JR3e4f/H1MV+Fs0TjrBubcS+1R1vDEIGVxz5g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH0PR12MB5265.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(39860400002)(376002)(396003)(346002)(136003)(33656002)(45080400002)(54906003)(966005)(122000001)(26005)(76116006)(6506007)(53546011)(66946007)(2906002)(71200400001)(38070700005)(66476007)(66556008)(64756008)(66446008)(186003)(86362001)(9686003)(478600001)(55016002)(316002)(7696005)(110136005)(52536014)(4326008)(8676002)(8936002)(83380400001)(5660300002)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?p1kiSCM/PwxUxMQjcCfI0eqptJDFbgLTM6sAmKuohBjvkM0Cg0TEJDaHm/cx?= =?us-ascii?Q?M1OXyJNN4M1j4doW5LTnUhQ84RYWSPRizGqHH13I7dsUstKdtRnrloRbce6p?= =?us-ascii?Q?vnl3ok3uxPTTiHNB110MOFRPpknBd9z45Qa3dVqrZba1Vyuw7SWvpgjQn23v?= =?us-ascii?Q?ikDJC8puMK3gv4oAeBY6/gFG4q+tGsVzG3s2DHnSbUaDIK9XDZf/CNKItx6k?= =?us-ascii?Q?O7/07NMpM83eqCpVPvflYskna2Ix64VvD5vfWz7RONHHyi645dyy0h2KisBt?= =?us-ascii?Q?hI5SkO7ljRmN//MJGo/6ivT0coHT63/vAdE/A3mg2zcOwMTbwox4kadUmk4T?= =?us-ascii?Q?8a4kpSvTNhYU4T5Aai//WEH7uI6WmWZxbh9aQ/IbCRAOHK+l9iE527EcwtDx?= =?us-ascii?Q?wVjjCYN2gA52C3brjBb42YarrGV0p4fjvDrnRePogIFFd5AbdRofCNv8m+TM?= =?us-ascii?Q?SIhBQkLtJ8LVcUstw177rSancDyIma8iuf8rETNiOBaRta0ZOYd0/CbZRnwZ?= =?us-ascii?Q?muFh1LFlrUXsigvOie/kLy4QUWfJZZRyvNlG6BSnPD16aEEMq7VERdrIeHov?= =?us-ascii?Q?7Hg18eLkrxHADteemsdB20mHWu6GP9MP9FDYlubfay1dxhHzb2n/ZOH7dbkT?= =?us-ascii?Q?bE76+AdjXGYC3hcL0rq5lVhwaUNmUpTgHdFEmi6ENzLNgcGXh/e2K//OPDi0?= =?us-ascii?Q?gz0YdpWQo0PlDzQrBzA0lTcn0eCIJrZnaCrFLr2L8QC8fURZmNjGoD8r/ULu?= =?us-ascii?Q?TY3b2YY825t0ud7wqUpxYxUIK6vZsAVlp2WvFrrsM/Sx+PLvBe3hlrSvsSA+?= =?us-ascii?Q?tuMg3fXU66jMXoo0I8quhlL9L5yLaLVN6eyHSxc08WMbrKpj/W1mEv0bQcpz?= =?us-ascii?Q?qTJu/HhbdhMrVOqeCAsFpD3fAJUFqAcvfBK+S3ZxsQ2krKQVMqwo5auAu4fd?= =?us-ascii?Q?Q4pFIr/jyL/6el1T3BWoGoff8TUSJLw+s3MUafpc00lHz8D//cMBudW4h3RV?= =?us-ascii?Q?IvEa27LzTRe1M7ZtAp6oTU+Xq3Y6taGtffCgvOP5/srgVZU7Ia4xW+2/vOaq?= =?us-ascii?Q?f2KCnsAqYjA0B1qA/kR70kZ9WXeHkXpG3lgDVkjwHtVbITihQLrB3uDPKCq8?= =?us-ascii?Q?y8lKuMsv/05bN+fodF+5mqTVRITabh4MZcHemEN1KspH2k0UGsnDLZRYc+sJ?= =?us-ascii?Q?OTQIWv8LrgwvjlI9/dWBUTSFBXX7Za89xPl7TcZ55UuzAv0vAGpSC3iRRxhT?= =?us-ascii?Q?HZ3Yti7kF8QV+j74Scphf1ow2q9ZkTkf60CzgiQR6RaPhyBxzFHeLLxidvft?= =?us-ascii?Q?YH8UQN3/dnJdrV3dMQTvp51e?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH0PR12MB5265.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e151889e-5e2b-4b34-462b-08d971092391 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Sep 2021 07:37:11.3400 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: u/NrfZLLl/IUxiNzD/hs56RlRSOjNS/xW/WXnTn6WcJojTa2DpLv2dpetKrHYdBFL0MpF9BKk7H1g0RbX9GB/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB5531 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2021 07:37:14 -0000 [Public] Ping 6... Please review the patches and give your comments. Thanks, Nagajyothi -----Original Message----- From: E, Nagajyothi =20 Sent: Wednesday, August 25, 2021 12:28 PM To: Mark Wielaard ; dwz@sourceware.org; vries@gcc.gnu.org Cc: George, Jini Susan ; Achra, Nitika ; Sharma, Alok Kumar ; E, Nagajyothi = Subject: [PING] [PATCH 2/2] Test script modifications to use llvm-dwarfdump= when compiler is clang [AMD Official Use Only] Ping 5... gentle reminder to review the patches. Thanks, Nagajyothi -----Original Message----- From: E, Nagajyothi Sent: Sunday, July 25, 2021 11:05 PM To: Mark Wielaard ; dwz@sourceware.org; vries@gcc.gnu.org Cc: George, Jini Susan ; Achra, Nitika ; Sharma, Alok Kumar ; E, Nagajyothi = Subject: RE: [PATCH 2/2] Test script modifications to use llvm-dwarfdump wh= en compiler is clang [AMD Public Use] Ping 4... has anyone looked at these patches? Request someone to please review the two patches and give comments. Thanks, Nagajyothi -----Original Message----- From: E, Nagajyothi Sent: Tuesday, July 13, 2021 9:27 AM To: Mark Wielaard ; dwz@sourceware.org Cc: George, Jini Susan ; Achra, Nitika ; Sharma, Alok Kumar ; E, Nagajyothi = Subject: RE: [PATCH 2/2] Test script modifications to use llvm-dwarfdump wh= en compiler is clang [AMD Official Use Only - Internal Distribution Only] Ping 3... any comments on these patches? If any explanation/clarification is required, I would be glad to provide it= . Please let me know. Thanks, Nagajyothi -----Original Message----- From: E, Nagajyothi Sent: Thursday, June 3, 2021 10:27 PM To: Mark Wielaard ; dwz@sourceware.org Cc: George, Jini Susan ; Achra, Nitika ; Sharma, Alok Kumar ; Parasuraman, H= ariharan ; E, Nagajyothi Subject: RE: [PATCH 2/2] Test script modifications to use llvm-dwarfdump wh= en compiler is clang [AMD Official Use Only - Internal Distribution Only] Ping 2... gentle reminder for review. Thanks, Nagajyothi -----Original Message----- From: E, Nagajyothi Sent: Monday, May 24, 2021 5:48 PM To: Mark Wielaard ; dwz@sourceware.org Cc: George, Jini Susan ; Achra, Nitika ; Sharma, Alok Kumar ; Parasuraman, H= ariharan ; E, Nagajyothi Subject: RE: [PATCH 2/2] Test script modifications to use llvm-dwarfdump wh= en compiler is clang [AMD Official Use Only - Internal Distribution Only] Hi, Does anyone have any comments on these patches? A gentle reminder for revie= w. Thanks, Nagajyothi -----Original Message----- From: E, Nagajyothi Sent: Sunday, May 16, 2021 5:06 PM To: Mark Wielaard ; dwz@sourceware.org Cc: George, Jini Susan ; Achra, Nitika ; Sharma, Alok Kumar ; Parasuraman, H= ariharan ; E, Nagajyothi Subject: [PATCH 2/2] Test script modifications to use llvm-dwarfdump when c= ompiler is clang [AMD Official Use Only - Internal Distribution Only] Hi, This testsuite patch may be used while running make check CC=3D"clang -gdwarf-5" CXX=3D"clang++ -gdwarf-5" to avoid test failures due to readelf. This checks if $CC/$CXX is clang/clang++ and uses llvm-dwarfdump in place o= f readelf in the test scripts. This is needed as readelf produces errors/wa= rnings with clang-generated DWARF5 sections/forms, causing many test failur= es. The latest llvm-dwarfdump (27 April, 2021) is to be used, which has a f= ix in printing headers of DW_UT_partial type. Thanks, Nagajyothi -----Original Message----- From: Mark Wielaard Sent: Thursday, February 18, 2021 8:15 PM To: E, Nagajyothi ; dwz@sourceware.org Cc: George, Jini Susan ; Achra, Nitika ; Sharma, Alok Kumar Subject: Re: Plan to contribute for supporting split dwarf (-gsplit-dwarf) = in dwz [CAUTION: External Email] Hi Nagajyothi, On Wed, 2021-02-17 at 05:53 +0000, E, Nagajyothi via Dwz wrote: > I am working on adding support for the dwarf5 .debug_str_offsets,=20 > .debug_addr sections and the related forms DW_FORM_strx[1234], DW_FORM_ad= drx[1234]. > Please let me know if anyone has already started work on these. Thanks, I don't believe anybody is working on this right now. There is already a bug for .debug_addr/DW_FORM_addrx[1234] support: https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fsourcew= are.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D27375&data=3D04%7C01%7CNagajyo= thi.E%40amd.com%7C37c0fb4399464264b01808d8d41bcb9c%7C3dd8961fe4884e608e11a8= 2d994e183d%7C0%7C0%7C637492563147320988%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4= wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3D= 7AjB%2BXKo9J5gTlW1CeEhHXZykYKB2vFZ%2BTnBQvW4%2BIA%3D&reserved=3D0 I think this shouldn't be too hard. Any DIE that references an address cann= ot be moved to an alt file, so simply mark it with die_no_multifile. We do = try to optimize DW_AT_low/high_pc attribute pairs, so double check that doe= sn't interfere with DW_FORM_addrx[1234] processing. Also note that there are two new location operations DW_OP_addrx and DW_OP_= constx that can reference the .debug_addr section index. As a followup you could try optimizing things, but then you need to keep tr= ack of all the addresses used and see if there are duplicates that could be= turned into a (smaller) DW_FORM_addrx[1234] index. But I would keep that s= eparate from the initial implementation. For .debug_str_offset/DW_FORM_strx[1234] I opened a new bug. https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fsourcew= are.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D27434&data=3D04%7C01%7CNagajyo= thi.E%40amd.com%7C37c0fb4399464264b01808d8d41bcb9c%7C3dd8961fe4884e608e11a8= 2d994e183d%7C0%7C0%7C637492563147330979%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4= wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3D= AqQRLjgKh9h7YHPIr4wDiqP1rRTXz2kG6IZlAT0SaSQ%3D&reserved=3D0 This is a little trickier than DW_FORM_addrx[1234] since such DIEs using DW= _FORM_strx may be moved to a multifile. You also probably want to make them= equal to DW_FORM_strp entries pointing (indirectly) to the same string. You might want to add a note to the the bugs that you are working on them. Thanks, Mark