From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22796 invoked by alias); 18 Oct 2014 21:44:30 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 22773 invoked by uid 89); 18 Oct 2014 21:44:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC,SUBJ_OBFU_PUNCT_MANY,TVD_RCVD_IP autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: brightrain.aerifal.cx Received: from 216-12-86-13.cv.mvl.ntelos.net (HELO brightrain.aerifal.cx) (216.12.86.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 18 Oct 2014 21:44:28 +0000 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1XfbnV-00041V-00; Sat, 18 Oct 2014 21:44:25 +0000 Date: Sat, 18 Oct 2014 21:44:00 -0000 From: Rich Felker To: Jan Kratochvil Cc: libc-alpha@sourceware.org, gdb-patches@sourceware.org Subject: Re: [libc patch] __tls_get_addr with link_map * instead of modid Message-ID: <20141018214424.GI32028@brightrain.aerifal.cx> References: <20141018201540.GA26252@host2.jankratochvil.net> <20141018212048.GH32028@brightrain.aerifal.cx> <20141018212727.GA27805@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141018212727.GA27805@host2.jankratochvil.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-10/txt/msg00503.txt.bz2 On Sat, Oct 18, 2014 at 11:27:27PM +0200, Jan Kratochvil wrote: > On Sat, 18 Oct 2014 23:20:48 +0200, Rich Felker wrote: > > > Additionally one could also fetch the module id from R_X86_64_DTPMOD64 but that > > > would require arch specific code in GDB. I do not plan to implement this way. > > > > I don't see how this would work; how would you request the dynamic > > linker to resolve that for you? > > When the inferior is running the relocation is already resolved. So GDB can This is only the case if the module actually has a relocation for local TLS contained in it. I'm not sure how you could assume this is always the case, but maybe in cases where it's not true there's no reasonable way you'd want to access TLS in that way. Rich