From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4386 invoked by alias); 5 Aug 2008 12:22:00 -0000 Received: (qmail 4376 invoked by uid 22791); 5 Aug 2008 12:22:00 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 05 Aug 2008 12:21:21 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id B28F9983EF; Tue, 5 Aug 2008 12:21:19 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 6F162983A9; Tue, 5 Aug 2008 12:21:19 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KQLXS-0004b0-TE; Tue, 05 Aug 2008 08:21:18 -0400 Date: Tue, 05 Aug 2008 12:22:00 -0000 From: Daniel Jacobowitz To: Vinay Sridhar Cc: Jan Kratochvil , gdb-patches@sources.redhat.com, luisgpm@linux.vnet.ibm.com, uweigand@de.ibm.com Subject: Re: [patch] Re: Accessing tls variables across files causes a bug Message-ID: <20080805122118.GB17219@caradoc.them.org> Mail-Followup-To: Vinay Sridhar , Jan Kratochvil , gdb-patches@sources.redhat.com, luisgpm@linux.vnet.ibm.com, uweigand@de.ibm.com References: <1217480020.4755.1.camel@vinaysridhar.in.ibm.com> <20080802171807.GA2755@host0.dyn.jankratochvil.net> <1217925527.3658.41.camel@vinaysridhar.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1217925527.3658.41.camel@vinaysridhar.in.ibm.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes 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 X-SW-Source: 2008-08/txt/msg00075.txt.bz2 On Tue, Aug 05, 2008 at 02:08:47PM +0530, Vinay Sridhar wrote: > 2. obtain symbol info from msymtab and check for the section value. > AFAIK, elf has section=17 for tls. This number doesn't mean anything. You want the STT_TLS section type. But if you're doing the right thing without a minimal symbol why rely on a minimal symbol at all? -- Daniel Jacobowitz CodeSourcery