From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (wildebeest.demon.nl [212.238.236.112]) by sourceware.org (Postfix) with ESMTPS id 5F862385481A for ; Tue, 16 Mar 2021 21:29:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5F862385481A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mark@klomp.org Received: from librem (deer0x15.wildebeest.org [172.31.17.151]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id A383030006B8; Tue, 16 Mar 2021 22:29:04 +0100 (CET) Received: by librem (Postfix, from userid 1000) id 994C7C15E8; Tue, 16 Mar 2021 22:27:49 +0100 (CET) Date: Tue, 16 Mar 2021 22:27:49 +0100 From: Mark Wielaard To: Tom de Vries Cc: dwz@sourceware.org, jakub@redhat.com Subject: Re: [PATCH] Add --devel-skip-producer Message-ID: <20210316212749.GC3054@wildebeest.org> References: <20210316141919.GA24635@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210316141919.GA24635@delia> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, 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, 16 Mar 2021 21:29:07 -0000 Hi Tom, On Tue, Mar 16, 2021 at 03:19:20PM +0100, Tom de Vries wrote: > In PR27588 a test-case was reported where dwz did not optimize due > to illegal DWARF produced by nasm: > ... > $ dwz libxul.so -o libxul.so.z > dwz: libxul.so: loclistptr attribute, yet no .debug_loc section > ... > > Add an option --devel-skip-producer such that we can filter out > CUs coming from a particular producer, such that we have instead: > ... > $ readelf -wi libxul.so | grep DW_AT_producer \ > | sed 's/.*: //' | sort | uniq -c > 176 clang LLVM (rustc version 1.50.0) > 2 GNU AS 2.36.1 > 2 GNU C11 11.0.1 20210315 (experimental) > 16 NASM 2.15.05 > 76 yasm 1.3.0 > $ dwz libxul.so -o libxul.so.z --devel-skip-producer NASM > $ readelf -wi libxul.so.z | grep DW_AT_producer \ > | sed 's/.*: //' | sort | uniq -c > 176 clang LLVM (rustc version 1.50.0) > 2 GNU AS 2.36.1 > 2 GNU C11 11.0.1 20210315 (experimental) > 76 yasm 1.3.0 > ... > > Any comments? So this skips and then removes the whole CU (because we set die_remove on the cu_die)? It is useful as --devel option, but I would be against it as non-devel option. Cheers, Mark