From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AVggFNZ1cGq3LAIAWB0awg (envelope-from ) for ; Mon, 03 Aug 2026 07:04:54 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=XDPiVLCa; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 494321E09E; Mon, 03 Aug 2026 07:04:54 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham 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 C611D1E099 for ; Mon, 03 Aug 2026 07:04:52 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8CBDC4BAE7F6 for ; Mon, 3 Aug 2026 11:04:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CBDC4BAE7F6 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=XDPiVLCa Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id C85ED4BA540B for ; Mon, 3 Aug 2026 11:04:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C85ED4BA540B Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C85ED4BA540B Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=148.163.158.5 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1785755064; cv=pass; b=RLG+GzOpdmSFkKp+BF/7wOmq71DMC73k6AwpQaQLradiiu3y74kzDjRSNg99EGaVPi3YePG3QXjk2lNuE2VOTV7NEowkS/8Xi1bGTwHTq3LsSpBb2ewbMMkUoZKV1Q0G3XS9R8+DSE/AZDFf74kG8LMZvV1EGBoFBL+iBEZSioE= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1785755064; c=relaxed/simple; bh=+tLY4D8HjGlFTKv2RWtmekvX3GE/LTPYOWtZUsfzBNk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lH0J+95+pSyOeSIHQUIYTO5LyiG3i3p3LThu20YZctuwKNks/fYsDGRuq2+PqF3TcJaWP6GEfGxyQhdmLhYY4lrCm0lnXuLATkeT+7DguR2G/bnlg9Vtlp1+mXaA2vnmiRNcbBV+W03meqVzNiPBpoCEebdu22kIQq4zSukwgJM= ARC-Authentication-Results: i=2; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=XDPiVLCa DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C85ED4BA540B Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 672NhZZr513595; Mon, 3 Aug 2026 11:04:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=pp1; bh=D8Spf7A0lq6dnYQVaP3liayxPNbHf/ zD4nQBdBEFjW4=; b=XDPiVLCaUFVNM4jYMXmOjNrro/QRiMaKh1ugoSQylGPPoN YQAHVuO6fuF7uKFP10T7Y8Z8QS5vmdd3yIE/NCQ2tNkJeSs4soOh7tX5kRE2FC4v 3poAKPoqLGCxwde3Y6HB27HTa0FPandCiwbgDHC0bc7cAUG+S3rppWDTq/nBS5Au eIJAAdBgVYqFy58mrmdgTwNKW46C1SuGcn7sG1IX3DAUwrUwrJNLgUNXEKn3TvLz VoPQK6XHnpUVCqrERGu6xCxyl00GMj9xW8eHPMbQGG2cJnmKxa4pcwnAGwjsH4Yj Eqe1tlo/Plq94n8/KqkR419h6DIt9DHgHZlqko1A== Received: from ph7pr06cu001.outbound.protection.outlook.com (mail-westus3azon11010029.outbound.protection.outlook.com [52.101.201.29]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4fs8eug0na-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 03 Aug 2026 11:04:22 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Xrt8JO8WdsGiyPcAbgZVeZcGBu3W2LNWYihKLoP6srIFET4p2A9vH1fHfqUXAEkenzBsQrh9I0NkRuVMH3jmRPQyRQC2z5+aaVYMXdvAsw1/bc0nn+kPZ6Wd2J7wY3yKYLdr2/z9sXekkCdTRpQxetmVTaslS+wG+s4AAJZ3rRtTcscmi5QeA4wor1uxMCs+YPr7AStaBVRrBk8iZd/ssiBG0T4qeM8tC0sxLqjlCeRuwA8J/nk+7YiG9YA1gwphjK4jEdXY6+e51mAam21UOwlKmnd9VQBspUTUydaPe1nV6l47EPfVPk2x+IlgBrLXbzrGCQauKCiqDN5i8b8YYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=D8Spf7A0lq6dnYQVaP3liayxPNbHf/zD4nQBdBEFjW4=; b=KHTALE3PsK7P07Dbb51Rczn7d0zslXfSNUifQXKPeXSD1cY8skplJdAJVFRJ52kyvyVABjEf1U7QgKZSvxuY1nI7OeY2YJr2fn35MeZFAo3GZmLhDVlOVMOOKE2qH6kB1+7Qb8ZgmNhRFM3FeJraBcmwqNd2TbpIKzCAV6M9BYCLMuVYSX8fjhpKpqxOoN99thl8qAQiy0sRFbUJOxoOxPcUxuVJOlJipiPsIRJQW/jO0xSUM4T2TYGKwJ31J5910IbFFBMLGvAZyiclEqG1w2Xlg6E/5d2mRz6p25mt4+D5zD9bmRdOTvrOnRk6h27ZOO56JtD2X2TB2Eywjl17oQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ibm.com; dmarc=pass action=none header.from=ibm.com; dkim=pass header.d=ibm.com; arc=none Received: from LV8PR15MB6488.namprd15.prod.outlook.com (2603:10b6:408:1f4::13) by SA0PR15MB3854.namprd15.prod.outlook.com (2603:10b6:806:80::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.223.18; Mon, 3 Aug 2026 11:04:20 +0000 Received: from LV8PR15MB6488.namprd15.prod.outlook.com ([fe80::cc4d:8604:c04f:2a40]) by LV8PR15MB6488.namprd15.prod.outlook.com ([fe80::cc4d:8604:c04f:2a40%4]) with mapi id 15.21.0270.017; Mon, 3 Aug 2026 11:04:20 +0000 From: Aditya Kamath To: Ulrich Weigand , "akamath996@gmail.com" , "tom@tromey.com" , "simon.marchi@polymtl.ca" CC: "gdb-patches@sourceware.org" , SANGAMESH MALLAYYA , PRAJWAL B MEHENDARKAR Subject: Re: [PATCH v1] Add TLS variable debug support for AIX [ 64-bit XCOFF files only] Thread-Topic: [PATCH v1] Add TLS variable debug support for AIX [ 64-bit XCOFF files only] Thread-Index: AQHdH1xyB9pEKmCGvkej+4EA89MIYraML8+3 Date: Mon, 3 Aug 2026 11:04:20 +0000 Message-ID: References: <20260729093301.16401-2-akamath996@gmail.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-reactions: allow x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LV8PR15MB6488:EE_|SA0PR15MB3854:EE_ x-ms-office365-filtering-correlation-id: b6a1fb63-8f93-400d-08db-08def14ef81f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|23010399003|366016|376014|38070700021|11063799006|10067099003|56012099006|4143699003|22082099003|18002099003|8096899003; x-microsoft-antispam-message-info: 6Xi5M3q7inPBrDqAyQG4Jh0T4gmm9tXuzV2MSDnoXvteQfkBiZcjGUurddyW8l969Bv49jNHCFngIv/0VTilgCvt7s4j9o2j1+ic/tQ8pcXpMfb68qh7LIlBLtyEk5FB8elWBweOljfF2c6RIfam5DrcTcoKCc6Wa43weq0Q4195Sn7vg3c0vriB0MJp2JarMoy3VAKno6A/ZBiHZHi7bcHXA9BdfmwBoFDrm0Kv3XWsohz4ALM+LAEPsP/z60n5f4xoEm8Vj7yL+NwbxZKnl3VSGQAozhZCSUwQcC4swLqVmFfamxjZ3Y5bwGoE7rH1Z2WjsKBfBPL4phAIQvpLjoIHTFm3xvJ1xXt8dF2r8l3QwKFCJfwHAcbosc5FdlMhXHbqUfkMulaoXiuPhhnYoA9ck8spoXzWd3DyYK6Zrtbuz4HSMqlWntjS6yEdcXw9dsbYfsX1/Bprye53SdWBCvjVt5NwAxHL1ycwvkAeAKUws4MVsKLOZU2Cvnt4eIhQTJeo38Ed08I0U07p0Ua9Qnp7tHnSm3Y8BObiShlk/KxDyPHVrTARwyVU0s86ECcSgFjDrDgF+CxvjQhKiy876H9pPRWNPiBAchBJH76XcVl/S0yMQJhIxzo7xA/kOekO2MNZUFYe2uKvlFdvxBRPTdUs+OufVcwrE2ifDwl16AJn4sd4pr8wzEIR6wLu1Y7+SWSoAs2+sIcE8MchnFvKnlaWNII59NOEv9pUEhiIN+o= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:LV8PR15MB6488.namprd15.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(23010399003)(366016)(376014)(38070700021)(11063799006)(10067099003)(56012099006)(4143699003)(22082099003)(18002099003)(8096899003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?66VH7q9PGtJR1oY4CVDCGmsOPUu0MsF98zXgGz0KrjX/xno7gmn8Q8Y0A1AI?= =?us-ascii?Q?LqTl90JmL/W4XG9lhnvi/2WJXfObUdejZZZaFFYj7Zf9Znn169klTbQ6W0mG?= =?us-ascii?Q?CV/smxFeTYW8d6kaXwQV4nd+R9iCEqXMSedr5KX6fjH01NDio3UFYp1RNmv2?= =?us-ascii?Q?XY/HusGEOsI/sgofR2eNKjPoSWhcjmv9rqkUhnfxS6i7q2OUWC1NZeTBMFyJ?= =?us-ascii?Q?EONgKYSWh81ENJYFbVZe3Eku0Xn+f4Tre5T6o5Gzj71dFDX49s27mjU8rZfc?= =?us-ascii?Q?I2cl5l52zz5bPBuJZz3TGtlDLBCvu2nEpByuT3cU6UHDwzU/ztBCCAdxS7jH?= =?us-ascii?Q?+LghsoYY50VhAG2otPsRfZQ1a4lGnkSy/8EoR+DORhus0eFzOti6ycFSreF4?= =?us-ascii?Q?L+4q0E/8r0pDCzfkQ4SqWcFaq8gLi2jCTIu/yoaOiqarj+dbT8yTx3zG/xZ8?= =?us-ascii?Q?T2+uN8kYAy43MZBfAapsvrNzTdvg2uT2FXrxLpPxKyV05aF4vUInz0qFnr1l?= =?us-ascii?Q?NG7T9+yttREzwBt8XnODiu8nAug2twbvthWq7nbk5PE+y9etsUMHQtPAkhK5?= =?us-ascii?Q?LWyF+ZCwPRitLL2NPL55Vu7Cs8+SmYeTrqdGnTU/ML7ya72MQtV3buLegs1V?= =?us-ascii?Q?enVG9WwlTS8ZKOeJiRk+lavkkv6J02DxPtDzvy25qzgvMMB8eStqo87Fwj72?= =?us-ascii?Q?2O5SKumPX7kOK27L+wo3i2R1hU1rhGuue+2otBBtYsjZFHp/T4C0V7LF7K5s?= =?us-ascii?Q?zwiACrGUi/OPdkzl04jWB+nYoFUV3DRsQTuJXRRMigc5DmpLhaZkNkU1pRx1?= =?us-ascii?Q?iY/fFTm3uo5Di9RxKpSapMgzzgCOi1hFGFCJXAoQvWaxR5v/Jm7yRxA0acnX?= =?us-ascii?Q?5QAfUbPr7so0icDNGPjJ+iqU+W8FTYmSrkh00GgW+IR7PH86D61Pf91p16rF?= =?us-ascii?Q?ipVjwF2yp6an6oAhSgnT5L6fmqXfR7h5Y3ddjnEUON+YznbhkHD1Wmxv3qNJ?= =?us-ascii?Q?Pb/D+TvPqTeqWAOYZ48mfxLnpbjRoub6KouD1B3DsX+dOR+mFsbT4zi/l3fz?= =?us-ascii?Q?zQXAfmqqCbdALkHfTLY6bkRaW9zj9wWmsip2g0k8C2HwmvuqMuJXUImo1I1a?= =?us-ascii?Q?RfeM/Ia+sLts2T2rS6UCv79Bz+V02NLp7w1UVRtgq7oM21/6+EPT2JjrJbNL?= =?us-ascii?Q?sqr9nuYgSdqD5vjmrqof8e4Dr0yQ6s53eJx5lwQp06nh+bQiayaZRL7sBgqh?= =?us-ascii?Q?A6bFJd/ENrm0vtNKeZGWp5hlWFelogBIKPvRNB78TxOp4h/TlawDT1DhkQqq?= =?us-ascii?Q?MDq9fXJUhnxk/PIJTh+mfGouyHhGUtOP/RGfwnPYCgka07MgroghIx3no0hs?= =?us-ascii?Q?LTaFoAjFDhSsvlklxtyiVVSPvtr091BONfRRasxkWNgMMACgfOvGHS9GqcZ+?= =?us-ascii?Q?/F3kqyF9vEjzWFTI71x+QhZ/5caTc4I2SlyppKZzbabI8Z5sDSd31wRqkifv?= =?us-ascii?Q?jE5zCKOG7JjkQ60K8pfYHxUiXcQ9oMfdOix/qoCrnZHK+Co7O/N4LAUhEKGA?= =?us-ascii?Q?7fVmmC0tZAXJx1DvDjkp8O4RhzHettZcg5D7D7cYwdH2z7Y10j5ZRuhaP0Ei?= =?us-ascii?Q?5U/hqoSZZ/ohgUEkcCJirSleL6BP8Szq9Jez1bqHhsaHRQiwyl5NreO8au3p?= =?us-ascii?Q?NYFYF0umlUUHaZSOxQEvn9wvN/9U4VEPsFYytX28NSt+R1oYzd29pyIVkm3U?= =?us-ascii?Q?L7hU1mx89MlEzuu6884c8kuGJBu/FVo=3D?= Content-Type: multipart/alternative; boundary="_000_LV8PR15MB6488EA9A6761B30855C2E391D6D52LV8PR15MB6488namp_" MIME-Version: 1.0 X-Exchange-RoutingPolicyChecked: Aj/EX6mdOcLFPHUwo6SaEU2BlMEQr+rXzzFwdFp+O9NXkRaONkQ4nQ69Z5mZiped/ni24LUQqVJJouIEK4t4dt/qRMGkx6s16qhVVKh7h6MNA1nZERQ66VMQrvBJH1i7cU8Qza1jUDtUm1UPdZyN7aca+74aW23+RMEbvxHsjXLWO5DT5Kkcf+Eb6nxR5R300AmdhJXEkdX6i37gOJokK+sSi2nxb6vcLJQJ+9WlwcQ6qTGhWO/ZkpTMXMft4xTnxAkc6Cc13qR/Je6KNdmcNAtZU5JSJPMXJh2MroRWx16qmaDWdvG0PbvUB/KkiwEv9svAROd2IHVAsTh1TNheIA== X-OriginatorOrg: ibm.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LV8PR15MB6488.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6a1fb63-8f93-400d-08db-08def14ef81f X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Aug 2026 11:04:20.4923 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fcf67057-50c9-4ad4-98f3-ffca64add9e9 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LDLI8mwbCo4LqlMRbA8NBP+tIP6OauklE53WdR94+0DM2N1JpmzYM2yB58wHCeOogp+KcUwXzUpJntF4BRgmPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR15MB3854 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-ORIG-GUID: CgDiDz7hUp2OyDEA2yqcCQBOiqhAiCvW X-Proofpoint-Spam-Info: AW1haW4tMjYwODAzMDA5NyBTYWx0ZWRfX4H3p6guBeB0g bEm+LG9/aerABydKMU1Q7jUbCGZ1CIHzyoCoNBEIbJqh7bSQr3ZWCcXTfWVKTSp8oFaxiDBD3kL dQlswja7VGixzil62Vp69pTOTegze7k= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODAzMDA5NyBTYWx0ZWRfXwzeoqmFn1oEO ANDEbbGRQk+a76I003yGAY6KB0jlKnJUdUlTc/5UO+h23TPhbMMc7fanDM9Ju3WlcMREY+rBzu+ fVWu/mqaVVKxGB9vepwpMykwukdMw2QQwYLHbFEdSE2gNnwbPQzSJPo/73da37gKSyD5epU6dsP Tc0Y6BmecRDUIjcfVYx38HwA2icLlTGfdAyyr0UeRwamTFo22tP3idtcGXf2HtrauN/pcuvql47 baZSenybp7WZIcOF/VlHX7c1jByFvNMtRwLUzuF5Kwjq14CtjXcaBBfR9coHJvQZaqNi4JcD17E qIYhMxgt32KycRF1xGRcb2rbANoQ0PT1RLxDwKvGlBjNKFyzvraTA6xFDsbsvL26IBTYCZSm0GJ HGJSqHKQQihvQGFv7BHDAOGZx7rGjlcVr8LaW5jbAd1+TlyhRsf2g4e0LJxBY+HODeui7txt+Zj efcsToo6LXH2r8tHqPQ== X-Proofpoint-GUID: AKDEctqJYuqe1th7e2VQzIau-N-bgDWb X-Authority-Analysis: v=2.4 cv=KfzidwYD c=1 sm=1 tr=0 ts=6a7075b7 cx=c_pps a=FnNH6Hr+id3EzXqhVuY+iw==:117 a=z/mQ4Ysz8XfWz/Q5cLBRGdckG28=:19 a=lCpzRmAYbLLaTzLvsPZ7Mbvzbb8=:19 a=xqWC_Br6kY4A:10 a=Sv0fKeRqtYgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=RzCfie-kr_QcCd8fBx8p:22 a=qmt35UVbtRbEYgFyN5cA:9 a=CjuIK1q_8ugA:10 a=RkzY9lx-HVbRcSdqnOYA:9 a=wAuQQmO_MvWh2SLe:21 a=_W_S_7VecoQA:10 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-02_06,2026-07-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 suspectscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 phishscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608030097 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 --_000_LV8PR15MB6488EA9A6761B30855C2E391D6D52LV8PR15MB6488namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Ulrich and community members, Thank you for your feedback. >This doesn't look right to me. The issue is not so much the >"TLS model", which is mostly a matter of optimization. The >issue is more fundamental: thread-local variables defined in >libraries loaded with dlopen *cannot* be accessed directly >relative to the thread pointer, because the storage for >those is only allocated at dlopen time and not statically >known at compile or link time. >Ideally, you should be able to implement full support (by >accessing the AIX libc equivalent of the DTV). If that is >not possible for some reason, then you should at least >restrict the implementation to variables guaranteed to >work (e.g. by checking whether the objfile passsed to >fetch_tls_load_module_address corresponds to the main >executable or an initially loaded library). Thanks for letting me know this. I have implemented it in two patches and s= ent the same. v1-0002-Add-TLS-support-for-shared-libraries-in-AIX.patch v2-0001-Add-TLS-variable-debug-support-for-AIX-64-bit-XCO.patch Where v2-0001-Add-TLS-variable-debug-support-for-AIX-64-bit-XCO.patch - Now just= blocks shared library thread local variable computation v1-0002-Add-TLS-support-for-shared-libraries-in-AIX.patch - Where we comput= e thread local variable for shared library. Let me know what you think and kindly give me feedback for the same. Have a nice day. Thanks and regards, Aditya. --_000_LV8PR15MB6488EA9A6761B30855C2E391D6D52LV8PR15MB6488namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi Ulrich and community members,

Thank you for your feedback.

>This doesn't look right to me.  The issue is not so much the
>"TLS model", which is mostly a matter of optimization.  = The
>issue is more fundamental: thread-local variables defined in
>libraries loaded with dlopen *cannot* be accessed directly
>relative to the thread pointer, because the storage for
>those is only allocated at dlopen time and not statically
>known at compile or link time.


>Ideally, you should be able to implement full support (by
>accessing the AIX libc equivalent of the DTV).  If that is
>not possible for some reason, then you should at least
>restrict the implementation to variables guaranteed to
>work (e.g. by checking whether the objfile passsed to
>fetch_tls_load_module_address corresponds to the main
>executable or an initially loaded library).

Thanks for letting me know this. I have implemented it in two patches and s= ent the same.

= v1-0002-Add-TLS-support-for-shared-libraries-in-AIX.patch

= v2-0001-Add-TLS-variable-debug-support-for-AIX-64-bit-XCO.patch 


Where 

v2-0001-Add-TLS-varia= ble-debug-support-for-AIX-64-bit-XCO.patch  - Now just blocks shared library thread local variable computation