From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id he5MFjPeCGcAlwkAWB0awg (envelope-from ) for ; Fri, 11 Oct 2024 04:13:39 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=KGZaIPBV; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=KGZaIPBV; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 438221E357; Fri, 11 Oct 2024 04:13:39 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,UNPARSEABLE_RELAY,URIBL_BLOCKED, URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 685F31E0C0 for ; Fri, 11 Oct 2024 04:13:37 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E2796385781B for ; Fri, 11 Oct 2024 08:13:36 +0000 (GMT) Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2061f.outbound.protection.outlook.com [IPv6:2a01:111:f403:260c::61f]) by sourceware.org (Postfix) with ESMTPS id 1AED43858D26 for ; Fri, 11 Oct 2024 08:13:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1AED43858D26 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1AED43858D26 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:260c::61f ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1728634398; cv=pass; b=X8t6QyQxv1oB94HykfqLj54Ajeg6v2ygrT87RAu/Pui/xPGvay/Wc6heZiifJK3f4chRf/cLh7OP81hBm1NVugvwt8C2Z6u9PbMjyi/3apRI6ZwG3L6X6gAzkzoQ8NMLH8L7BQ5uR5vzfT9cCb+RCtB7Gs0oZH10iHQF/2kHdww= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1728634398; c=relaxed/simple; bh=RXemOjwsuE0kPRbZcHmk0e119mQvceoilz3D+a4VLs0=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=fvp2jUNR1kk45aH1WBxIfRIA2eBQsxXVGJt2D3KdiKRNB5ppFEP6Dp9khCgwb6+11kchQT4UzgqUyPOaPlYcjKhsB+3zdpuRPQX+6AWv0RQfwbyBhFZPgH3+qeua5tWyUp9MdLKeQJt+k0acP2S7vRYFIjzGLzvPDTRMBbl7zaU= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=FxaqGKlXNzI0z0AmOu9LDtdYb9Jnj+id+Tzv8sCrjwdl42hxF8hJSf+OIgL/zlVbENWB0+SK0v4EgU4yNRmPdMV7c4fGWIH+JCHdlC3JbxE6W1+PJlnqw/kGhr6Eg8+M/r9UvP3Mq4d1gZin6qERMsj9GuTYEleC8IgISDO7BgHT0gX4UhPE1Nq2C74al7nZPN+FtVo/rXi71QtvA553A5Ub6Ipk7iKG9aPmXRzUYd9UtLkLqkZWuQzu9lIEutNUeZjoc3xhp/kk/W5vD4FfLZkF9yWxh9JxvLF9RFQJ7akltuGKukpuSqCRA7NGDZyHg2mmo8lXrLQ0Sm2zM/7ixw== ARC-Message-Signature: i=2; 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=Pr/6YPq7lrIidmw2N0T3G9/WiRz86ZTsGlNtGThuDu4=; b=Nu2+c4RjMqwCKGPeYgOH7zvCDd++01wy+uj55xiEV8/OhoULJyC1dByFw0liiwfQ4WwB0gKPnGS9B59MpmSy0tEZqluHpBhqe4RtbRCG9NYUo3dGpVVAOQvUHWVnKU6hBRuNJhE9MGZRmYd0WHmwhE69SOcRv7NNkIie2EeFhIcG3bLYs8/phkDr+P2m9rQVVuVJ8QbK+ObpO/1FtVXg6vY/9nwK6ynmSIrAXB2qI/YzjIWlQcvI6RY39rdKR+czuYHhYU03msvAr1VqFnJwarv7UMh6oR0TrAKp77UYrJkZoHzkpa+eu1FR95FUHsNe37ok/+kkOpJhpgXX/9aSYg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pr/6YPq7lrIidmw2N0T3G9/WiRz86ZTsGlNtGThuDu4=; b=KGZaIPBVZih62lKG/D5MEatGnSQMp0Aklb7Lgc35z0RUaWnqkoctd91VrnPXdfhjn98ZheOjOzSil6v45lY2E++REObzSVx89a9WKPlP8toHjPQhPEB7oLJT741Jln7TwDgrwjPcK/y62L9z7pKtUBxVbgMPVw+UN9VEYHN/B4E= Received: from AS9PR06CA0093.eurprd06.prod.outlook.com (2603:10a6:20b:465::22) by PA4PR08MB6159.eurprd08.prod.outlook.com (2603:10a6:102:e8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.16; Fri, 11 Oct 2024 08:13:11 +0000 Received: from AMS0EPF00000191.eurprd05.prod.outlook.com (2603:10a6:20b:465:cafe::db) by AS9PR06CA0093.outlook.office365.com (2603:10a6:20b:465::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.18 via Frontend Transport; Fri, 11 Oct 2024 08:13:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AMS0EPF00000191.mail.protection.outlook.com (10.167.16.216) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Fri, 11 Oct 2024 08:13:09 +0000 Received: ("Tessian outbound da7ba6582322:v473"); Fri, 11 Oct 2024 08:13:09 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5ff8bf725b4ea5e2 X-TessianGatewayMetadata: xUxkTbNWG/C/UX28hbLwLLTWCXpufbJ/y/s2m4teHyvyEWA8mAsRDeR+ioDlrpckEg0oVw9CUNQuPW1apqsCUZhJ0FIlMgw6pb2CewcsWgAxB1Bk9b5wLCZXA2yhW8y2mW1VhEk4HydiHr/WSY/K8ZvDnfM/YNrLywaQoNrRuaI= X-CR-MTA-TID: 64aa7808 Received: from La725c262676f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F44EF00A-27EC-4263-8B96-DE3E1903B171.1; Fri, 11 Oct 2024 08:13:02 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id La725c262676f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 11 Oct 2024 08:13:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gNBx6X58yxGJffw7ZL3HNVREldjKeH7k36QFiJNeqo1OdHN5OyMy3FAIEPa1ilu43zi+fVg6SyoriTI5hSYlpbYysY4tID3HgNjVVyBdGrpLcD2ub/kXgkawy+hp7EjzMMLQhYifdyF6rFnsf93Z4cJZxYFbbd0dQDYmq9JCGonKubeD/ZPdlcsLGPvIr2IEwn2Nh6xPRnhSWTLpBE54BOFy8hu0eca81GAWq/FCX/TkIQ30pzXqZkhC7AiP5bqJtRUpNO8jf82SEe6t1tqxMcLik2Uh6005hb/EraOigtPqJR187u/ALx1/OUidoHadVcHeoGFHIXa4b3Z4432ntA== 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=Pr/6YPq7lrIidmw2N0T3G9/WiRz86ZTsGlNtGThuDu4=; b=kXdrsA94kZVAACozrtZKcNbd2bEucg7MhQP7+SMSvGEcY9FeCVXdJt6n3a7Msn7DtFnoxb1IZ+dWg1vuFHG2lHHp1kDhkqnODOY5BsGejVwYjGSTU/tEYBL8imLbrGu0ffMbSMbuxCA06Pdr3ANYNUmW6APhG7c/WIQEAmx/OgFbXBhj7f0cukDnBeZ3MuqFBQGpMYDuQx6OiSUy1lyGVkh26BhQ9n0gNvMQrMqJPTZiwU6jDvJQUHvMLWE9xMQMHvxaSbvefJCiWhk2N5xQEE6M8s/N4Netc9OW81axnQ03LWfJ9Re2Olchh0DQG7CAf6QvMRmxqYrP/cwx1UooWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pr/6YPq7lrIidmw2N0T3G9/WiRz86ZTsGlNtGThuDu4=; b=KGZaIPBVZih62lKG/D5MEatGnSQMp0Aklb7Lgc35z0RUaWnqkoctd91VrnPXdfhjn98ZheOjOzSil6v45lY2E++REObzSVx89a9WKPlP8toHjPQhPEB7oLJT741Jln7TwDgrwjPcK/y62L9z7pKtUBxVbgMPVw+UN9VEYHN/B4E= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from PR3PR08MB5852.eurprd08.prod.outlook.com (2603:10a6:102:8e::21) by DB3PR08MB8986.eurprd08.prod.outlook.com (2603:10a6:10:42b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.18; Fri, 11 Oct 2024 08:12:57 +0000 Received: from PR3PR08MB5852.eurprd08.prod.outlook.com ([fe80::f44:d113:1c29:825d]) by PR3PR08MB5852.eurprd08.prod.outlook.com ([fe80::f44:d113:1c29:825d%6]) with mapi id 15.20.8048.017; Fri, 11 Oct 2024 08:12:57 +0000 Message-ID: <2e2cd12e-4b1d-45db-92f8-ed37ef469fbb@arm.com> Date: Fri, 11 Oct 2024 09:12:55 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 05/11] Internal TLS support for aarch64, x86_64, riscv, ppc64, and s390x Content-Language: en-US To: Kevin Buettner , gdb-patches@sourceware.org References: <20241010022552.47637-1-kevinb@redhat.com> <20241010022552.47637-6-kevinb@redhat.com> From: Luis Machado In-Reply-To: <20241010022552.47637-6-kevinb@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P302CA0038.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:317::6) To PR3PR08MB5852.eurprd08.prod.outlook.com (2603:10a6:102:8e::21) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: PR3PR08MB5852:EE_|DB3PR08MB8986:EE_|AMS0EPF00000191:EE_|PA4PR08MB6159:EE_ X-MS-Office365-Filtering-Correlation-Id: 8f74d782-e443-4586-cd12-08dce9cc8aef x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info-Original: =?utf-8?B?VU16YThKK0pBSGdYc2t0YlZocjF2MG1idWVHNWlEMm9naFN0VWtkN2pCK1U2?= =?utf-8?B?RTU3UndOWkdZa2pDUk55VGZzTDdkWU1LZEx2M29CSzFPSndpR2VMc0drSlNh?= =?utf-8?B?ZWNNN2pwYWVmemVTZERBZkhJR00yODh2NXZNMEw0S2EyL2RiTFhNdUJtSHh1?= =?utf-8?B?ZVJKTXZ5cWRLQThhNTk4eTN0cnRKRVRlN1JKbE9MWVRIM25tL2dkMldldm01?= =?utf-8?B?S3hEQkhjbEhrcUpZcCtqbjNmSlU2WFd2bndKNnM5LzVVZDBwOFA1bmxxY1Fl?= =?utf-8?B?U1p0UHZqT3A3MmMvbVBrZTBOdldaeDVmUDJoTEdxc0Zjd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lh2aENEWmJ5Q1JlZFVGcDZLb09j?= =?utf-8?B?Y0paZkVMOWVsOXZwdVJibDFoWUF6L0Q3RWZIV3pwUXdKd28rbm5uOFNsOE9j?= =?utf-8?B?TzNXWnY4bk9oaCtGTndhYlNpYlBtT1Bub1FBcVA5TGRldWdSR1BMdmhEUDQx?= =?utf-8?B?ZnhHYkxJS2wxbWFYbjVGSFdqWlA1QW1URnpWVjBNVjlwYVVNUi9iSUpyVGNI?= =?utf-8?B?VllhM09vTEJ5L04xUkF0SUN4bHhCZlNENkxNaURwcVNPTTRId29vYjh4d1NE?= =?utf-8?B?b250cDhUbHg2bUVUR2VRTFBKOVliY0pvenROelpEMUNCcmZ4d1ZLeHp1UnBU?= =?utf-8?B?cHlhb1FaWFJ5R2NrSkVMMjFNdEV2NHM3UUlsOWhBa3o5M0lTNkdwRmRoK3Z4?= =?utf-8?B?STdsUHM5Y2RLY0wzanlkU0NZWmlKN2NxMlpSNVFjeUc1SW1XZ2JyUTVPSEpp?= =?utf-8?B?V3owUUdGanhnVEFLb3lYd25Od3dWME9OY0g0S0NoODRlcS8xRHNzZml6SFNJ?= =?utf-8?Q?mxFMV1kaK+oEqMvPFk=3D?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR3PR08MB5852.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR08MB8986 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:102:8e::21]; domain=PR3PR08MB5852.eurprd08.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF00000191.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 18f67039-b50e-4b93-4048-08dce9cc83bb X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|35042699022|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?M3lDeEF3MjE2SXh0VDIzb2JPRlB0d1dlUG9HbnBJekxybGhxSWhGZmZEdXYv?= =?utf-8?B?UkJZRWErb2ZrUkc4OHZJUC9obUllYzF1aDI2MEZvVlVob05rcWEvd2VDNjhF?= =?utf-8?B?aWJCcG1mWERLVVNBK3FpVlJtMGlYQUVpSEdNSWtUTUFrVGpGUUZPOWlqRTF5?= =?utf-8?B?Q1crOFplS0RYaFdJRHgyMElRODljc3RyZWYzWFRnOTl5TlY1em5vSXEremZP?= =?utf-8?B?TEVqY1dUdklrUVVhWktRNzh2cURVK3dpMWFLZGlmU0dUVm4vOHYxYjM4d1F3?= =?utf-8?B?SVVKaFFtN0hhTDF4SzR6SWZ6UXdwRElxVVFRbUZPdkowL0RyVm1ZVlZORmRN?= =?utf-8?B?b1I3MnkwWlkxa0Z0dlNDU1JmNjBCRFM4OHdPT0J6MFVTVHhxdWYvbEFmUVJt?= =?utf-8?B?TFJYaEFVR3IrU09EUVdSM2I4eTRaeGFiZ213a2pDZEZtWVFsdlNCbHQvN292?= =?utf-8?B?Y1NNL3pzM2hXL1RwRlFiTCtXUElBMFk5QmlvTmUxZkIzS1RqN1lMQ2RHWks1?= =?utf-8?B?TDdOc2g5UkJHQXJyN0laU3hwNXRWczM1MElMSzl2QjRSdWhSQWd3eHI0UCty?= =?utf-8?B?T1VjNlptSk4vdzhBYjVwQkNwc1AyUHZBWmx6UjF3eVVBT0ZDaFEyQ1c1c1Br?= =?utf-8?B?WFVFM3ZNb3hXRlNzK3c4NnZYaksySXJlL2dSREZXcG5qOHVWdVpiNm53Uk50?= =?utf-8?B?Vjc4TS9RbU41NW0wbFFCeFkrQkMxSHFMWXBHc3V2SUJUdmE3S3hVaTQ1TEJh?= =?utf-8?B?V01FZkpqK0V2WHIxam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f-8?B?ajN1cmJlTzdibGhLSWRUbU1ZaXdBMEFMSmNVaG1jdjR5VTVnVWRRUXdPMHl5?= =?utf-8?B?Q3V0TDZTYmJRNm1keFNhZ0xpYisyRDk3QTlEc0pUb0llL0FqM296QmJtZ0hH?= =?utf-8?B?Q1BqVlBmUTNHdEJwVm1yZitpMW80ZFdWeXA2UGhGelNRRnJGUmx0bFAra0w5?= =?utf-8?Q?aWP/hLJ6Xy+GG?= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230040)(36860700013)(376014)(35042699022)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2024 08:13:09.2714 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8f74d782-e443-4586-cd12-08dce9cc8aef X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF00000191.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6159 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 Thanks for the patch. On 10/10/24 03:16, Kevin Buettner wrote: > For each architecture, aarch64, x86_64, riscv, ppc64, and s390x, > this commit defines a suitable 'get_tls_dtv_addr' method and, > when necessary, a 'get_tls_dtp_offset' method. > > It also registers linux_get_thread_local_address, defined in > linux-tdep.c (in an earlier commit), as the get_thread_local_address > gdbarch method. It also registers its architecture specific code > using linux_register_tls_methods(). > > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=24548 > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31563 > --- > gdb/aarch64-linux-tdep.c | 53 +++++++++++++++++++++++++++ > gdb/amd64-linux-tdep.c | 37 +++++++++++++++++++ > gdb/ppc-linux-tdep.c | 62 ++++++++++++++++++++++++++++++++ > gdb/riscv-linux-tdep.c | 78 ++++++++++++++++++++++++++++++++++++++++ > gdb/s390-linux-tdep.c | 43 ++++++++++++++++++++++ > 5 files changed, 273 insertions(+) > > diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c > index c608a84bc71..b03c2162a1a 100644 > --- a/gdb/aarch64-linux-tdep.c > +++ b/gdb/aarch64-linux-tdep.c > @@ -35,6 +35,7 @@ > #include "target/target.h" > #include "expop.h" > #include "auxv.h" > +#include "inferior.h" > > #include "regcache.h" > #include "regset.h" > @@ -2693,6 +2694,55 @@ aarch64_use_target_description_from_corefile_notes (gdbarch *gdbarch, > return true; > } > > +/* Fetch and return the TLS DTV (dynamic thread vector) address for PTID. > + Throw a suitable TLS error if something goes wrong. */ > + > +static CORE_ADDR > +aarch64_linux_get_tls_dtv_addr (struct gdbarch *gdbarch, ptid_t ptid, > + linux_libc libc) > +{ > + /* On aarch64, the thread pointer is found in the tpidr register. */ > + regcache *regcache > + = get_thread_arch_regcache (current_inferior (), ptid, gdbarch); > + aarch64_gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); > + target_fetch_registers (regcache, tdep->tls_regnum_base); > + ULONGEST thr_ptr; > + if (regcache->cooked_read (tdep->tls_regnum_base, &thr_ptr) != REG_VALID) Since we're relying on TPIDR now, might be worth mentioning it is currently the first register in the TLS feature. Just in case things change later on? Otherwise the AArch64 bits look OK to me. Reviewed-By: Luis Machado