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 [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 104CE3858D33 for ; Tue, 28 Feb 2023 12:45:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 104CE3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677588334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pvbLFeThco2kzOnkaUQwoiBHs8XWB3VJzC1Y51TFQOM=; b=BbzTWeWAVql1KtxN1vsMA+3kccZw/t0iQ1Vl0FidjuzSshWmSM/KUH+CjXRRkIWv1WE3mF KJjeLBp5aLcbCi+yJIx0W6DacBAdZNki93lMLoLLXnCpKV/6FmzR6eGIFOIXpwG2MVv4C+ V//qYi8XyQQRrQVzaZAxPBRU3JyExzI= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-281-Pzvl6ghoPzaip-mfk3eFyQ-1; Tue, 28 Feb 2023 07:45:33 -0500 X-MC-Unique: Pzvl6ghoPzaip-mfk3eFyQ-1 Received: by mail-qv1-f72.google.com with SMTP id y6-20020ad457c6000000b00535261af1b1so5107241qvx.13 for ; Tue, 28 Feb 2023 04:45:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677588333; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pvbLFeThco2kzOnkaUQwoiBHs8XWB3VJzC1Y51TFQOM=; b=ZVgZPZhUhviF7VzPzEk8n+81Oc32/UGJlN+dBnt7CCPfvDmLuBOb5Y1uXQNtLcHdiF ODn57TMJMsN8vV4gDxeP8r3ChSo/hvJBlGdciRRZCzB+ly9Sz8h7Yp2P+t2xdKYEfIDE 1lBxRTk5j/gi1CuzgHhxkvjQVL2ZNSKDH0gRljnyyyh2NJqEe0Asapx/Zm9++Y0/F8Wy 9eFg87EZLcbu7cc/G41Cf62NC4zLgmeNdzjn+XAIxlGeuIOyDP7eRwd29c7bgrE1cXY8 q2PJgHJgItnpkOxBV47A2p4xojYQHwVTz6fau/ukHtAe5qCKs6209NQVnLi6Pupz1G+o nrqQ== X-Gm-Message-State: AO0yUKU/+EXC/VjqaZhu4HlEkzcru9AWG9ZmQmhFUeIxUBr8U0/k+c5y mHTkuvTT/EO2++eHKJo9hLYLpSxo0Ua0AXv3rS3aHgjHE6XuHq89ziTWFud9qshgUOC/QJFcUro cPr9fnIP6Opki+p1zR0WK8IxQGroM1oo= X-Received: by 2002:a05:622a:1a24:b0:3bf:e13e:30d2 with SMTP id f36-20020a05622a1a2400b003bfe13e30d2mr4430085qtb.67.1677588332784; Tue, 28 Feb 2023 04:45:32 -0800 (PST) X-Google-Smtp-Source: AK7set+94dU5/TNA1pnGAgQoOkWY+J+6kwVLWGwQgfue5kuw5scv2AFeN8jkxInafDHKpnSuekA6YA== X-Received: by 2002:a05:622a:1a24:b0:3bf:e13e:30d2 with SMTP id f36-20020a05622a1a2400b003bfe13e30d2mr4430058qtb.67.1677588332514; Tue, 28 Feb 2023 04:45:32 -0800 (PST) Received: from [192.168.1.18] ([79.123.86.193]) by smtp.gmail.com with ESMTPSA id d187-20020ae9efc4000000b007428e743508sm6130466qkg.70.2023.02.28.04.45.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Feb 2023 04:45:32 -0800 (PST) Message-ID: Date: Tue, 28 Feb 2023 12:45:30 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v3] strip: keep .ctf section in stripped file To: Mark Wielaard , "Guillermo E. Martinez" Cc: elfutils-devel@sourceware.org References: <20220601155527.2192182-1-guillermo.e.martinez@oracle.com> <20230223184237.240615-1-guillermo.e.martinez@oracle.com> <20230224115125.GD9039@gnu.wildebeest.org> <20230224164838.lyfxsjbcpttxdsaf@kamehouse> <492387583758712a4f5f1f2e2646a3ba6a7a23f1.camel@klomp.org> From: Nick Clifton In-Reply-To: <492387583758712a4f5f1f2e2646a3ba6a7a23f1.camel@klomp.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham 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 Mark, >> Oh, I see, thanks for your comment!. My intention with this patch is to >> replicate the same proceeding by _default_ implemented in `binutils strip' >> tool, it is: not remove CTF section, except it is indicated explicitly. > > O, this surprises me. I wasn't aware binutils strip keeps unallocated > sections by default. But apparently it does. It doesn't seem specific > to ".ctf". Do you know why? This seems counter to how strip is supposed > to behave, at least how I understand it. I do not know why and I agree that it looks like a bug. Hmm, do you have a specific example in mind ? Cheers Nick