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 2F06E38582A1 for ; Wed, 22 Feb 2023 16:42:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2F06E38582A1 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: from r6.localdomain (82-217-174-174.cable.dynamic.v4.ziggo.nl [82.217.174.174]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 1D7063039EBD; Wed, 22 Feb 2023 17:42:46 +0100 (CET) Received: by r6.localdomain (Postfix, from userid 1000) id 6EA57340221; Wed, 22 Feb 2023 17:42:45 +0100 (CET) Message-ID: Subject: Re: [PATCHv2] strip: keep .ctf section in stripped file From: Mark Wielaard To: "Guillermo E. Martinez" Cc: elfutils-devel@sourceware.org, "Jose E. Marchesi" , nickc@redhat.com Date: Wed, 22 Feb 2023 17:42:45 +0100 In-Reply-To: References: <20220601155527.2192182-1-guillermo.e.martinez@oracle.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-3029.7 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_BARRACUDACENTRAL,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 Tue, 2022-12-20 at 22:35 +0100, Mark Wielaard wrote: > On Wed, Jun 01, 2022 at 10:55:27AM -0500, Guillermo E. Martinez via Elfut= ils-devel wrote: > > This is the second version patch to avoid remove the CTF section in > > stripped files. Changes from v1: > >=20 > > - Add description in tests/run-strip-remove-keep-ctf.sh > > mentioning how to regenerate test input file (testfile-ctf) > >=20 > > Please let me know your thoughts. > >=20 > > [...] > >=20 > > CTF debug format was designed to be present in stripped files, so > > this section should not be removed, so a new --remove-ctf option > > is added to indicate explicitly that .ctf section will be stripped > > out from binary file. >=20 > Sorry, I see I never reviewed this v2 variant. I know we tried to > coordinate with binutils so eu-strip and binutils strip would do the > same thing. And that Jose had an idea for a new section flag to > automatically detect what section should/shouldn't be stripped (into a > separate .debug file). What was the conclusion of that? Any update on this? How should .ctf sections be dealt with by strip like tools? Thanks, Mark