From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by sourceware.org (Postfix) with ESMTPS id 2122A3858D39 for ; Wed, 8 Feb 2023 16:28:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2122A3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-il1-x12c.google.com with SMTP id n2so4156659ili.11 for ; Wed, 08 Feb 2023 08:28:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=VmRKOkS2AlONsNK5IirLeeHSAlQaMOdOSWvpW31jSEk=; b=FNDIlRu5lqhw71fuytSnMyWxk8g1MeBmSzxicTQRHZ0WSD/CJEtEhZrRJVZz+FX9XD LyR7FGoovq4WxfG0yUVJ0IPNgqHRorLA+lvXvN347L4DIKBu/UpLcrNfj2wyXozXLMWp u1MNOfEN1Jvqn6/64k31AYKlpsfoaGB2z7NHpciGeF45ZVyVqARXMLArsbpoK/DBgSgn iTBdosU9yalFUp8YIOP8AoYlPEPZBa4377vvribfOHrPcoJ/SXeQECcEnVojhtU8WLUH eM+O00eBT+Ttt1h2hie2Pd3vmSs8QH+O4fRKtm8Bvp5AIdOivKaewJX0NAjoTjOP5gU1 CzQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VmRKOkS2AlONsNK5IirLeeHSAlQaMOdOSWvpW31jSEk=; b=gexebo88G3JEStNPI1+2nae7YMkUD/pny/q/XyibomxmMNFd8dW3bp/1W9xGKxUr7G jBzpUfhXtNlxl4EetKLu233vtfbCaEYlmnXFniN1u9RPSj7V82bkgg8Su675zzSeiu57 uQCINiZlzhO0sPLyzplrV1SlYUkAuIpXyM8FGqwo1Hxe5pnijaBN/cq+ns0kTJUzAhVp Zv88IQL4o7/gVD9WSJ/mwAm5m5b1Nyg4VV7YetE6grAMwYCkvZW4GHRUqdNPSYBV7je8 PRWamj4L74xdLRXvDFFp24lpCKwq8NRc9GdKWHjmTHzQPOpb5EqF3ByGUDZxP/BqEYIc ngkg== X-Gm-Message-State: AO0yUKVnn3A5vKNre2nXleiEOywLh/DEE3mCYjZgClDSk9Azj74tjvnt aXSujOcv5ngxoCAPmxUY+3Jddg== X-Google-Smtp-Source: AK7set8c+ggOEobqWLWghSUQ3qNte75M9tLFvryroz7gIBP5WUOJv+40/Be9hbYYuJ0+hZtkUe+07g== X-Received: by 2002:a92:2611:0:b0:311:e48:d64a with SMTP id n17-20020a922611000000b003110e48d64amr5457120ile.17.1675873713381; Wed, 08 Feb 2023 08:28:33 -0800 (PST) Received: from murgatroyd (75-166-130-93.hlrn.qwest.net. [75.166.130.93]) by smtp.gmail.com with ESMTPSA id q7-20020a02a307000000b003c4860eb853sm50748jai.109.2023.02.08.08.28.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 08:28:32 -0800 (PST) From: Tom Tromey To: Tom Tromey via Gdb-patches Cc: Tom Tromey Subject: Re: [PATCH 0/6] Change how symbol section indices are set References: <20230118153025.342512-1-tromey@adacore.com> X-Attribution: Tom Date: Wed, 08 Feb 2023 09:28:32 -0700 In-Reply-To: <20230118153025.342512-1-tromey@adacore.com> (Tom Tromey via Gdb-patches's message of "Wed, 18 Jan 2023 08:30:19 -0700") Message-ID: <87sffg15qn.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.6 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 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: >>>>> "Tom" == Tom Tromey via Gdb-patches writes: Tom> An otherwise innocuous internal AdaCore test case started failing when Tom> linked with 'mold'. Investigation revealed that the problem was Tom> actually in gdb -- gdb decided that a certain symbol was in the Tom> .interp section. Tom> Digging deeper, I found that most calls to fixup_symbol_section are Tom> incorrect, and that if a section is chosen, it's frequently the wrong Tom> one. Tom> This series attempts to clean up this area. Regression tested on Tom> x86-64 Fedora 36. I'm checking this in now. Tom