From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id BBE4F3858C54 for ; Wed, 26 Apr 2023 23:43:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BBE4F3858C54 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-x434.google.com with SMTP id d2e1a72fcca58-63b64a32fd2so9856498b3a.2 for ; Wed, 26 Apr 2023 16:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682552635; x=1685144635; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=idHX93TGBVtYBimMkeQdK05cJBLqvkU9DroagjiFnKQ=; b=LSa0f7iRumxRhf+F3dBBwYhITqO/ymyqw07eowuzLnxIyeQyD1gJRMY0qDPgtK9sUM aZkb9YYxy0awucVMNJUkg4X17yx7usHWlbto0Pvyobw++eZGn/8Soa0yNsheCbqIOJYz 4vht156Fu4Dqea9opXfChkTWPvE865ZKJ623H07q9oeYiPS/AZ/GJTugxsw4EmOCMqPa FhOxiyCs4xnDyvGAP3vK0eWLVbZKjUpBhO469PShOeWFbfFqyxk9yJtjCzwIfDPLOozV sOu1K3ugx2A60dfPor0zdgfiu5g+s32hEWt6EtwTFg4tSPCPA/xSG1F9rcvpSbXx7qwt 6D2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682552635; x=1685144635; 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 :message-id:reply-to; bh=idHX93TGBVtYBimMkeQdK05cJBLqvkU9DroagjiFnKQ=; b=ks0yj6+tRv9lqDQ1v+dmoXyHJf1khFAWKgWwg5zXoL3KGtJ5IwMnwcdZmXmZP3kDvl CxeOYEdvqdjQ0qPcG0Qkq4k8NwLUlqnhF7PBH3cz/mGvsPcCVjwV0eDQHtMqQR5Px1Cn R3n6FK2XXfaEeiu5RV2pYQD5XwjtHE6cDjPHlOaIn2r7y1uPclbJ6pZ7jH+rjxYB6lvH g94Q0Rcz2tJq66BgTiWjMEJtXdsM1cygz6J5hR3Jx5qF9Q3m7rHzDNKTsCBhHpkWqtsc gs/rbKQ0+9EKJs1HAOwiNL++CPjlTU1s9+MBy2OHVRArBEJHbUga2V02fpVugMtQMNhR dfkA== X-Gm-Message-State: AAQBX9czrbHQ9uam8IyzkjdQo/QgRP3NGX6OJ10oUMzC3hXA9gOjXvzO s2W7QALkna350t2waL9RpQyH05mEPIQ= X-Google-Smtp-Source: AKy350YR8r7uyHLAggIcE2LtnwILos0aiOW5rCOmfPS/6VyMgHp8DzIpMKDxTOODaSQ+2vsSR70M2Q== X-Received: by 2002:a05:6a00:993:b0:639:d66c:8fc7 with SMTP id u19-20020a056a00099300b00639d66c8fc7mr32015660pfg.12.1682552634927; Wed, 26 Apr 2023 16:43:54 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id m30-20020a62a21e000000b0062ddaa823bfsm11752541pff.185.2023.04.26.16.43.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 16:43:54 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id B69EF1142C16; Thu, 27 Apr 2023 09:13:51 +0930 (ACST) Date: Thu, 27 Apr 2023 09:13:51 +0930 From: Alan Modra To: Michael Matz Cc: binutils@sourceware.org Subject: Re: [PATCH] Fix PR30358, performance with --sort-section Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3028.9 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,T_SCC_BODY_TEXT_LINE 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 Wed, Apr 26, 2023 at 02:16:55PM +0000, Michael Matz via Binutils wrote: > PR 30358 > * ldlang.c (wont_add_section_p): Split out from ... > (lang_add_section): ... here. > (output_section_callback_sort): Use wont_add_section_p to not > always add sections to the sort tree. OK, thanks! -- Alan Modra Australia Development Lab, IBM