Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=81.187.191.129 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795528769; b=qxEdTfjmnnTVyxViREWYKBQoMVdziekS1E/qeYDPpg+3hwQzU66M6QRUeahBSgcZ32jo K/SfDiB4PNRlhaJs9cdtRWhR7IKMOB1n9ymp7x3F0n+WvL/GIcOvLduWmUPJaYozC8pPV kPn1heGbO/CAZVUp6whc5KVSmW4VNXJXUw93jkRled4RWpvWF478ryYCxgszGMMuG0c9F q5aU+P+OFU/xz6mA805t+4yDTdgfqQVraOu/kGZTy0ACFRalm52XZqKPhzuQa+TTH1DUo um16rmlP7mryeoas15dxm96zoyfb6bl0xQAXPeq/66TayowX2FetERX7int0kqHSIWw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795528769; h=DMARC-Filter:Received:From:To:Cc:Subject:In-Reply-To:References: Emacs:Date:Message-ID:User-Agent:MIME-Version:Content-Type: Content-Transfer-Encoding:X-DCC-wuwien-Metrics; bh=NbFgJL2tkqniqUkGRiNBhiwIiPiLrxZvhAbM0CS05Pg=; b=RX96eQ8At+F8LDGvYPTB8mF08i5sJvw30cQBuQNNP0hIjYD9WNwtyI9Rq2F5IuYTG6Q6 1IaoSPlaZihBiExenc6euIhuwLGtP7+QGvUDXiKYwiXT1VoxE+5iIiePnvfVAfJZtLrFb H9S4I+lfixJAxWLVj4RsFKB10A6ofD3q9KP5Hrkca0xTrRUC25azeiJjhgeljcV0c6js0 KGApzHGrAwZLUMSbMMwmv/U01sGoYbQsZ2SlhgG3//d1q6MzWKyTyEd4O8zSzUnOwWyp9 zLkQ6CVLhXvy7oKYR8BOsyq0uiDI9mVTQKppKcAsWIOCBPg1RIKMP/oPkUy0XwVW/sQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=esperi.org.uk; spf=pass smtp.mailfrom=esperi.org.uk; arc=none smtp.remote-ip=81.187.191.129 Received: from mail.esperi.org.uk (icebox.esperi.org.uk [81.187.191.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEECC606A32A for ; Tue, 24 Nov 2026 13:59:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EEECC606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=esperi.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=esperi.org.uk Received: from loom (nix@sidle.srvr.nix [192.168.14.8]) by mail.esperi.org.uk (8.17.2/8.17.2) with ESMTPS id 6AODxK1O020582 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 24 Nov 2026 13:59:24 GMT From: Nick Alcock To: Kris Van Hees Cc: dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com Subject: Re: [PATCH 15/20] libdtrace: search both ELF symbol tables for module symbols In-Reply-To: References: <9a3ef30ca35af2d994b6f8a42a8e6700@oracle.com> <87ik2artkr.fsf@esperi.org.uk> Emacs: featuring the world's first municipal garbage collector! Date: Tue, 24 Nov 2026 13:59:16 +0000 Message-ID: <87eccaib4b.fsf@esperi.org.uk> User-Agent: Gnus/5.13 (Gnus v5.13) X-Mailing-List: dtrace@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-DCC-wuwien-Metrics: loom 1290; Body=3 Fuz1=3 Fuz2=3 On 6 Nov 2026, Kris Van Hees verbalised: > On Fri, Nov 06, 2026 at 01:13:40PM +0000, Nick Alcock wrote: >> On 30 Oct 2026, Kris Van Hees said: >>=20 >> > Keep independent symbol and address indices for SHT_SYMTAB and SHT_DYN= SYM, >> > loading strings through each table=C3=A2?Ts sh_link. Search .symtab be= fore .dynsym >> > and include dynamic-only names in module symbol iteration. >>=20 >> Yet noather place where one or the other strtab was overlooked. These >> mistakes all date right back to Solaris... >>=20 >> > Preserve .symtab indices for CTF, place dynamic and external symbols in >> > separate ID ranges, and use .dynsym for CTF when .symtab is absent. Al= low >>=20 >> Except in old dicts (CTFv2, or v3 in the absence of the CTF_F_DYNSTR >> dict flag), .dynsym should be searched unconditionally for CTF. >> Preferring the symtab is wrong. (I suspect this code is basically never >> run, since it's all symtypetab stuff, and the symtypetab isn't emitted >> for kernel CTF.) > > R-b? Yeah, I guess... Reviewed-by: Nick Alcock ... though I really wish you didn't have to, and in future maybe we can take this out again. --=20 NULL && (void)