From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 08FEA382E81D for ; Tue, 9 Mar 2021 11:45:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 08FEA382E81D Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-596-p9Hd1wsnO0W0BpNa--gGLA-1; Tue, 09 Mar 2021 06:45:21 -0500 X-MC-Unique: p9Hd1wsnO0W0BpNa--gGLA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2112919057A1; Tue, 9 Mar 2021 11:45:20 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-113-238.ams2.redhat.com [10.36.113.238]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 259EF196E3; Tue, 9 Mar 2021 11:45:18 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.16.1/8.16.1) with ESMTPS id 129BjFPa1850296 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 9 Mar 2021 12:45:15 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.16.1/8.16.1/Submit) id 129BjDgU1850295; Tue, 9 Mar 2021 12:45:13 +0100 Date: Tue, 9 Mar 2021 12:45:13 +0100 From: Jakub Jelinek To: Hannes Domani Cc: Allan Sandfeld Jensen , Mark Wielaard , "gcc@gcc.gnu.org" , "dwz@sourceware.org" , "binutils@sourceware.org" Subject: Re: DWZ 0.14 released Message-ID: <20210309114513.GM745611@tucnak> Reply-To: Jakub Jelinek References: <9f72f4e2-10b8-ac32-565e-b96314911d66@suse.de> <7438883.9MRIfJ1mQo@twilight> <20210309090918.GA28954@wildebeest.org> <463409719.1821183.1615289887767@mail.yahoo.com> MIME-Version: 1.0 In-Reply-To: <463409719.1821183.1615289887767@mail.yahoo.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Tue, 09 Mar 2021 11:45:25 -0000 On Tue, Mar 09, 2021 at 11:38:07AM +0000, Hannes Domani via Dwz wrote: > Am Dienstag, 9. März 2021, 10:10:47 MEZ hat Mark Wielaard Folgendes geschrieben: > > > Hi Allan, > > > > On Tue, Mar 09, 2021 at 09:06:54AM +0100, Allan Sandfeld Jensen wrote: > > > Btw, question for gcc/binutils > > > > > > Any reason the work done by tools like dwz couldn't be done in the compiler or > > > linker? Seems a bit odd to have a post-linker that optimizes the generated > > > code, when optimizations should already be enabled. > > > > > > dwz does two kinds of optimization. First it attempts to optimize the > > DWARF debugging information for a given object (executable or shared > > library). Secondly it tries to put shared pieces of a list of given > > objects into a supplemental file that gets referenced from all the > > given object files. > > > > Technically the first optimization could be done by the linker. But > > the second optimization is really a post-linker step. > > Related question: If it were part of binutils, maybe it could be adapted to > optimize DWARF debugging information of PE files as well. dwz intentionally uses libelf, it often deals with very large amounts of debug info that only barely fit into the address space limitations on certain arches or physical memory for good performance, and any kind of abstraction penalty (e.g. bfd) would make it slower and more memory hungry. So no, PE support is not possible. Jakub