From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by sourceware.org (Postfix) with ESMTPS id 3B2363954467 for ; Thu, 19 May 2022 15:10:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3B2363954467 Received: by mail-io1-xd36.google.com with SMTP id q203so6133472iod.0 for ; Thu, 19 May 2022 08:10:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=gHNJT+SppdZ80Dw6f87rIFHfGywk3MgY7WDxjCvUo/4=; b=c7xYs86DZEcHIFXNCyzPNcse6pMoFJMKjBSV2we+Opy+N7j3lIpvREQeQ3RSB7xhEM d8QqYQSMRk3Bzmy9bQSdud3u4U/OFZvCzOsuGoBKuxSwupfgh2AzxfxFlcXQiy0JneDw 5+a79AUykacfxwIOdOpXLE9p9a1Tr40A6DDm0fcUa8l8+PJVH12RSJZaWiayAWRhUMPn F2rRp9EOUPUrV44buEbO/HEw5s18PcgMPz1elv2cvY3W2IEU7PhiiPzURduk+QGUrvin tmOsQKmjHYFrME2OOzSV0ec6W9JXXL9se6IDAgD28af1O65BalQGW/uhmL9+zd6urcXF sDuQ== X-Gm-Message-State: AOAM533sfF3w9Z+GtqsjCTIjxfxZ4kl36ijF8XHu1TNOI+65EbmpiLKw 7U1WqCpyPbgnc1pU/7s9AOZMHg== X-Google-Smtp-Source: ABdhPJynzG8AsIjWxrdHcNVndEDrm/MgMbNG+vxauEF6ZfKiRQg5Yt7mdNNTy3Kx94A9I1haOlzAyw== X-Received: by 2002:a6b:3e41:0:b0:65a:4456:90b8 with SMTP id l62-20020a6b3e41000000b0065a445690b8mr2679217ioa.57.1652973050598; Thu, 19 May 2022 08:10:50 -0700 (PDT) Received: from murgatroyd (71-211-158-194.hlrn.qwest.net. [71.211.158.194]) by smtp.gmail.com with ESMTPSA id p12-20020a92da4c000000b002cde6e352c2sm1340103ilq.12.2022.05.19.08.10.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 08:10:23 -0700 (PDT) From: Tom Tromey To: Ilya Leoshkevich Cc: Tom Tromey , Ulrich Weigand , Andreas Arnez , binutils@sourceware.org Subject: Re: [PATCH] gdb: do not add const sections to the section map References: <20220516194209.2470009-1-iii@linux.ibm.com> X-Attribution: Tom Date: Thu, 19 May 2022 09:10:03 -0600 In-Reply-To: <20220516194209.2470009-1-iii@linux.ibm.com> (Ilya Leoshkevich's message of "Mon, 16 May 2022 21:42:09 +0200") Message-ID: <875ym1d0dw.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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 X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2022 15:10:52 -0000 >>>>> Ilya Leoshkevich writes: > From: Ulrich Weigand > build_objfile_section_table () creates four synthetic sections, which > significantly slow down section map sorting. This is especially > noticeable when debugging JITs that report a lot of objfiles. Since > these sections are not useful for find_pc_section (), do not add them > to the section map. How does it slow down the sorting? It seems a little strange at least to drop the *ABS* section, since IIUC that's for symbols that specify some kind of absolute address. Couldn't these matter for lookup purposes? It's probable I don't really know what's going on here... I wonder if we can drop all support for all these sections from gdb. Tom