From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 121653858D33 for ; Wed, 22 Feb 2023 23:04:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 121653858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: by gnu.wildebeest.org (Postfix, from userid 1000) id 4EF1A30067AE; Thu, 23 Feb 2023 00:04:47 +0100 (CET) Date: Thu, 23 Feb 2023 00:04:47 +0100 From: Mark Wielaard To: "Guillermo E. Martinez" Cc: elfutils-devel@sourceware.org, "Jose E. Marchesi" , nickc@redhat.com Subject: Re: [PATCHv2] strip: keep .ctf section in stripped file Message-ID: <20230222230447.GD1713@gnu.wildebeest.org> References: <20220601155527.2192182-1-guillermo.e.martinez@oracle.com> <20230222171207.xfklpsdy2655bc4c@kamehouse> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230222171207.xfklpsdy2655bc4c@kamehouse> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-3031.2 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, On Wed, Feb 22, 2023 at 11:12:07AM -0600, Guillermo E. Martinez wrote: > The conclusion was basically not use section flags to identify which > section should be stripped out or not, so, it requires other mechanisms > for explicitly specifying which sections should be removed, as eu-strip > does using arguments. > > https://sourceware.org/bugzilla/show_bug.cgi?id=29737 OK, thanks. > Worth it mention here, that my last test shows that .ctf section is not > stripped by ue-strip because it doesn't have a "debug" section name. Are you sure that is what happens? It might depend on whether or not you give eu-strip -g or not. With -g only debug symbols and .debug sections are removed, but it keeps any other unused/unallocated symbol/section. Without -g I would expect eu-strip to remove the .ctf section (unless it is an allocated section or referenced from an allocated section/symbol table). Cheers, Mark