From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70818 invoked by alias); 17 May 2019 00:37:56 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 70809 invoked by uid 89); 17 May 2019 00:37:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?ISO-8859-1?Q?Yes, score=9.9 required=5.0 tests=BAYES_80,BODY_8BITS,GARBLED_BODY,HTML_MESSAGE,INVALID_MSGID,RCVD_IN_PBL autolearn=no version=3.3.1 spammy=H*r:desktop, H*RU:desktop, HX-Spam-Relays-External:desktop, =e4=bb=a3=e9?= X-HELO: rccg.com Received: from Unknown (HELO rccg.com) (117.67.247.62) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 May 2019 00:37:54 +0000 Received: from desktop ([127.0.0.1]) by localhost via TCP with ESMTPA; Fri, 17 May 2019 08:37:52 +0800 Message-ID: e97dc45f-6ca4-407e-bcbf-5f0c23937bad MIME-Version: 1.0 From: =?utf-8?Q?08=E6=97=B637=E5=88=8652=E7=A7=92?= To: gdb@sourceware.org Date: Fri, 17 May 2019 05:21:00 -0000 Subject: =?utf-8?B?6ZaLQOWPkSnlg4QyMDE55bm0MDXmnIgxN+aXpQ==?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 X-SW-Source: 2019-05/txt/msg00029.txt.bz2 5Luj6ZaL5ZCE6KGM5Lia55m85ryCDQrnlLXjgIHlvq7vvJoxMzU2MDIxMDU0 MuWUkOe7j+eQhiwNCuS4gOS6uuS4iuWxseaJk+aftA== >From gdb-return-47007-listarch-gdb=sources.redhat.com@sourceware.org Fri May 17 05:21:28 2019 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 102984 invoked by alias); 17 May 2019 05:21:27 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Delivered-To: mailing list gdb@sourceware.org Received: (qmail 102944 invoked by uid 89); 17 May 2019 05:21:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=4.9 required=5.0 tests=BAYES_95,HTML_MESSAGE,KAM_NUMSUBJECT,PYZOR_CHECK autolearn=no version=3.3.1 spammy=H*Ad:U*bug-gdb, H*r:TCP, HX-Languages-Length:136, H*r:Hc-Vm-Pc X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 May 2019 05:21:26 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRVJ7-000375-3z for gdb@sourceware.org; Fri, 17 May 2019 01:21:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44717) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hRVJ6-0005sp-QH for bug-gdb@gnu.org; Fri, 17 May 2019 01:21:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRVJ6-00035Y-4C for bug-gdb@gnu.org; Fri, 17 May 2019 01:21:24 -0400 Received: from [49.66.223.188] (port=49830 helo=xnzx.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRVJ5-00034E-C7 for bug-gdb@gnu.org; Fri, 17 May 2019 01:21:24 -0400 Received: from Hc-Vm-Pc ([127.0.0.1]) by localhost via TCP with ESMTPA; Fri, 17 May 2019 13:14:44 +0800 MIME-Version: 1.0 From: nscbbgo To: bug-gdb@gnu.org Date: Fri, 17 May 2019 10:21:00 -0000 Subject: =?utf-8?B?aGnmnIkt56WoLeWPry3lvIBRUTU5OTk9NTM5NzHvvIwxNTctMW9vLTU4NDk2?= X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 Message-ID: X-Received-From: 49.66.223.188 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 X-SW-Source: 2019-05/txt/msg00030.txt.bz2 Content-length: 61 5pyJLeelqC3lj68t5byAUVE1OTk5PTUzOTcx77yMMTU3LTEwMC01ODQ5Ng== >From gdb-return-47008-listarch-gdb=sources.redhat.com@sourceware.org Fri May 17 10:21:37 2019 Return-Path: Delivered-To: listarch-gdb@sources.redhat.com Received: (qmail 57204 invoked by alias); 17 May 2019 10:21:36 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Delivered-To: mailing list gdb@sourceware.org Received: (qmail 57172 invoked by uid 89); 17 May 2019 10:21:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=H*r:sk:gdb@sou X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 May 2019 10:21:35 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 06EB63179161 for ; Fri, 17 May 2019 10:21:34 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-117-42.ams2.redhat.com [10.36.117.42]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 41220173B5 for ; Fri, 17 May 2019 10:21:33 +0000 (UTC) From: Florian Weimer To: gdb@sourceware.org Subject: Getting offset of inital-exec TLS variables on GNU/Linux Date: Fri, 17 May 2019 14:08:00 -0000 Message-ID: <87o941pej8.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00031.txt.bz2 Content-length: 267 Is it possible to obtain the offset of initial-exec TLS variable on GNU/Linux? It doesn't seem so because GDB executes the DWARF to access the TLS variable, so the offset is an implementation detail. Although it is often visible at the ELF layer. Thanks, Florian