From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kpAKKm3N6mk2zDcAWB0awg (envelope-from ) for ; Thu, 23 Apr 2026 21:54:53 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NSH/uqZi; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 978611E093; Thu, 23 Apr 2026 21:54:53 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_SBL_CSS,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 simark.ca (Postfix) with ESMTPS id 793091E093 for ; Thu, 23 Apr 2026 21:54:52 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id B2C6A4B99F5F for ; Fri, 24 Apr 2026 01:54:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2C6A4B99F5F Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NSH/uqZi Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 406224B99F59 for ; Fri, 24 Apr 2026 01:54:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 406224B99F59 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 406224B99F59 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776995665; cv=none; b=CXGK6dKvTKGHuVlHdKXXNYn4rwpY2obp/Yf+LH23D43Kl9AUMjvncNFOAD654V9HTheCK+rXkiEgpXnQQ3Ar8kV9oSYgAF7dX45w1F2YwpBNtBj/JE8I5qM8dP4c1xSpXExXf2/bhPg6Lkt/f+ZfaFZgk1wm43XlxZJvP2p5ihw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776995665; c=relaxed/simple; bh=n7VxDAIR/SWShObANJb0zOXX0cmtiKF6YN8t+a4k30s=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=HEvvCmJiy3XsWOWKTz28/IgthD4FYeT3bj5Izu770V+sJLZPPw5EUs9MietJgvehvh6GP3h0gvMW4PI8aZiHC4EDq7L2R7LPGnPmKpv38fdLjhYaE+LjjiOCEbM9WKC0oIx9mZFHk2aMwGW3y6IG4jRPss+zJlL7xst9PMype28= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 406224B99F59 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1776995664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WyfcP4hAxRtRXG98ms1bpd3pqVi3XcIVxM6fLJYf8jw=; b=NSH/uqZiZHqn7Z0XeVO0KFLnSO0WxjZX9yhtbk6sCM3rXOttYzV6eePIACweEjVeCNA3tH n4FIIFBggEHJsvdhJBJRepbaScSi8bPFZ0KoM6hW+srWgoVs7tr+jknGA86ThA3GW6ejfv zX6lgG0Hs8r3FjXCicr+1Bpr0Li8YTs= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-19-z_3ozG5fNxWrfkv3o4AQqA-1; Thu, 23 Apr 2026 21:54:23 -0400 X-MC-Unique: z_3ozG5fNxWrfkv3o4AQqA-1 X-Mimecast-MFC-AGG-ID: z_3ozG5fNxWrfkv3o4AQqA_1776995662 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4169E195608F; Fri, 24 Apr 2026 01:54:22 +0000 (UTC) Received: from f42-zbm-amd (unknown [10.22.80.51]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6C2503007572; Fri, 24 Apr 2026 01:54:21 +0000 (UTC) Date: Thu, 23 Apr 2026 18:54:18 -0700 From: Kevin Buettner To: Kinsey Moore Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] gdb: Add support for TLS under RTEMS Message-ID: <20260423185418.2d28545c@f42-zbm-amd> In-Reply-To: <20260422151840.661343-1-kinsey.moore@oarcorp.com> References: <20260422151840.661343-1-kinsey.moore@oarcorp.com> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: JGPoHB1POEni0CPwozBVac7UENHk0OZRA_RAJzeAz6Y_1776995662 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On Wed, 22 Apr 2026 10:18:40 -0500 Kinsey Moore wrote: > This support uses the presence of the ".rtemsroset" section to detect > whether an ELF was created using RTEMS. This works for current RTEMS > development (7) branch, 6 branch, 5 branch, and 4.11 branch. This > registers the TLS callback for architectures under which RTEMS is known > to support TLS. The RTEMS self-hosted GDB server is only expected to > support TLS in RTEMS 6 branch and the current development branch and > will only respond without error to qGetTLSAddr request in those > versions. Other GDB servers will respond with TLS information if > available. [...] > diff --git a/gdb/configure.tgt b/gdb/configure.tgt > index ba418653e86..05160714069 100644 > --- a/gdb/configure.tgt > +++ b/gdb/configure.tgt > @@ -128,6 +128,8 @@ case "${targ}" in > os_obs="netbsd-tdep.o solib-svr4.o";; > *-*-openbsd*) > os_obs="obsd-tdep.o solib-svr4.o";; > +*-rtems*) > + os_obs="rtems-tdep.o solib-svr4.o";; > esac [...] > +#include "solib-svr4.h" [...] > +static void > +rtems_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) > +{ > + set_gdbarch_fetch_tls_load_module_address (gdbarch, > + > svr4_fetch_objfile_link_map); +} Does (or will) RTEMS have SVR4 shared library support? If not, then the various references to solib-svr4 files and mechanisms should be removed. Kevin