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 2A8183858401 for ; Tue, 28 Feb 2023 12:59:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2A8183858401 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=1677589168; 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=DzRWErGNjMlgINwTnaGSOs40srUsgQI6uxIhxABEMfo=; b=PtaK8fu40ApTU0CQ0Yu/8pHypdQTChfFkFQC/OMabe38ZedFbEQ6kyLuqOBIMur4RfN37T c6kuqpqe+LEUlJ55ktKnHs6u9Gr0ZpSssfHeeAsd1ujqvnSuRNjwlZb+BggaYrAS7Sa0Gz MqvmU/UJYXc5Pc1QAiMp+Bm+43QR8S4= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-651-Rt04ds_OMOCV2mDwHv0xTw-1; Tue, 28 Feb 2023 07:59:22 -0500 X-MC-Unique: Rt04ds_OMOCV2mDwHv0xTw-1 Received: by mail-qt1-f200.google.com with SMTP id x4-20020ac85384000000b003bfbb485e2dso4539911qtp.22 for ; Tue, 28 Feb 2023 04:59:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677589162; 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=DzRWErGNjMlgINwTnaGSOs40srUsgQI6uxIhxABEMfo=; b=k94PiYQieHwbFSJatx/X2G864RUz+QBjzKIdfboMC+Aqzr4uY8zD6+fyNfr8ncvZwQ O4srLwltEr5nlVGraPRlz1+Di94NLsIM13wrChTmk7A9OV0rrMKn2xwIdXIz3p9jUz1E GyMjiQ8JkYsWOF+g3fdaRQMp0HsP4StIrLo+sXrki5XLBChEBROtnvZ95P96ZqUDcVBF 2+TKsz60X7kX2vpvvLz5EtPK0SoWTuBxmlS+7Qp0B6UP847rvnzA2AbKxporGulnAHmI hYqCG+uq0ncD48ENfEq1+djmq0tr5Zyzz1SmjsSTsVu+5yuqU8/ooRD99gEMHfD6Kcbz efRw== X-Gm-Message-State: AO0yUKWoEfB7IPE4WLO9YsdTMOSe8tA9ssovHsjpUNxPSo0CbjFnuNAR er4b3CawDpPz6VfAZ2GVtaoOtiW++CohdZsCbwHWT+5CAZMK44ML5eCwmmbaA4J+14pji752Azl QwyZQu8rtnX6P8I0a/u1B+HRf0w== X-Received: by 2002:a05:622a:1188:b0:3bf:d490:f218 with SMTP id m8-20020a05622a118800b003bfd490f218mr4701439qtk.43.1677589162327; Tue, 28 Feb 2023 04:59:22 -0800 (PST) X-Google-Smtp-Source: AK7set8+EXZJsAYq8NwSzEEmKb8wjiMnP0pcLb+DU6gRNsTNxRbxLgM/D814FsLXJlMEM+JuT9P1Fw== X-Received: by 2002:a05:622a:1188:b0:3bf:d490:f218 with SMTP id m8-20020a05622a118800b003bfd490f218mr4701422qtk.43.1677589162127; Tue, 28 Feb 2023 04:59:22 -0800 (PST) Received: from [192.168.1.18] ([79.123.86.193]) by smtp.gmail.com with ESMTPSA id x197-20020a3763ce000000b00742562938cfsm6740470qkb.107.2023.02.28.04.59.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Feb 2023 04:59:21 -0800 (PST) Message-ID: <8367d8ae-670d-b614-d922-211dcae11250@redhat.com> Date: Tue, 28 Feb 2023 12:59:19 +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, > 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. Actually thinking about it, there are a few important un-allocated sections that ought to be kept in a binary. For example .gnu_debuglink and .shstrtab. So maybe deleting unallocated sections by default is not such a good idea. Cheers Nick