From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 57BB23857BA6 for ; Fri, 23 Sep 2022 06:50:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 57BB23857BA6 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-x431.google.com with SMTP id 9so11502750pfz.12 for ; Thu, 22 Sep 2022 23:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=5iCO1veKYorBVYUKPfm7D26d5Pbeqt8ILaZrZXEiePs=; b=oXt3/rf8y/+GgkEV36BP9GjkRMxgsMYFLJBW4dCilEPFF4V+ea7mTV6rLMzPtxBxUl Gzb6rg/g1sTzHQzfwduOGUOmSk1pn1bzIVqDTYVY90Xfsz/JjOMnXJkWdrxLja3xUAXQ rcDj10vuYSp4smEtKJBpCYxOQex1x6NK73R9M6D6233kf3ZFnEyjVrNqo5UGt39Du5Yu JjUtmdTFR1tioePnsQAnt9qSHAAnd//9MJ0IlbeXkDQPaa6CUXKxk4zlm1nyTldWixqQ KWuSEjWpUputLYhfuKc7jv5t2UT8B6ggNJqwk5M88Okol7JqmmgxYKQ27auQZlt76CqM GhGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=5iCO1veKYorBVYUKPfm7D26d5Pbeqt8ILaZrZXEiePs=; b=63qLm7fh3DoNm8jDVrBgCmyTTlGKtZ399fAwo7HG903uqB3YssuCX3sInc+7Hh8ncn mYuWkzBqHmAh/aCtUujN010JQ4NfvtI7fVA4CFysgpVJAp5n/+gG+alQunAT9pimowJ2 4j4TErKm9NUXQ3OWGeT2/hwUu/Jo2+MlMTY1lSpfMWqCPrE/oH+E8aP3RPj85/HwAqry JOKdd6spMxdy/4TgmJTk89SvCeYvFJ3fYIu/RtB1GXDu7P1F+QqQXGNYTkD+f+C6Om9p z5uNucioqhTNNqcPQ/Td9kKdk+YbeO+ulBscuBYh1AEZonxvyr0ox+Inf2h13tJKkQcW ocHg== X-Gm-Message-State: ACrzQf2/rDHBUUCtsxGAxuKp3dTSTs/2bUGksfuYnl9jsgUyoaE1NziP v5KwuYrjAihBQ1wYxXt+h7+fcdWhHoOjgw== X-Google-Smtp-Source: AMsMyM6rLFFfZZLSh0Ua8y6gxmgNHy1WHKfMweEG+dyZg3hlZvhff1fl2cDM/g1xgr/8nfTnPlLwBQ== X-Received: by 2002:aa7:859a:0:b0:549:e89d:5ead with SMTP id w26-20020aa7859a000000b00549e89d5eadmr7789493pfn.63.1663915799218; Thu, 22 Sep 2022 23:49:59 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:d2a8:eaee:5068:2e96]) by smtp.gmail.com with ESMTPSA id x8-20020a170902a38800b00174ce512262sm5131875pla.182.2022.09.22.23.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 23:49:58 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 1117D11405C1; Fri, 23 Sep 2022 16:19:56 +0930 (ACST) Date: Fri, 23 Sep 2022 16:19:56 +0930 From: Alan Modra To: Jan Beulich Cc: binutils@sourceware.org Subject: Re: Don't attempt to compress bss sections Message-ID: References: <07c50cd3-99d1-5262-b8d9-d70f9b0ae689@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07c50cd3-99d1-5262-b8d9-d70f9b0ae689@suse.com> X-Spam-Status: No, score=-3028.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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: On Fri, Sep 23, 2022 at 08:33:05AM +0200, Jan Beulich wrote: > On 23.09.2022 04:26, Alan Modra via Binutils wrote: > > It doesn't make sense to try to compress a section without contents > > since those sections take no space on disk. Compression can only > > increase the disk image size. > > > > * coffgen.c (make_a_section_from_file): Exclude !SEC_HAS_CONTENTS > > sections from compression and decompression. > > * elf.c (_bfd_elf_make_section_from_shdr): Likewise. > > So I'm curious - are there debugging sections without contents? Or > is the change more for the sake of documentation? There are fuzzers that try any mad thing. -- Alan Modra Australia Development Lab, IBM