From: Vinay Sridhar <vinay@linux.vnet.ibm.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>,
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
Date: Wed, 06 Aug 2008 11:16:00 -0000 [thread overview]
Message-ID: <1218021410.13466.4.camel@vinaysridhar.in.ibm.com> (raw)
In-Reply-To: <20080805122118.GB17219@caradoc.them.org>
On Tue, 2008-08-05 at 08:21 -0400, Daniel Jacobowitz wrote:
> 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?
>
We need to determine that the variable is a "tls" variable. When this is
extern, the symbol is LOC_UNRESOLVED. So the section type from "sym" is
not filled. Thats why I tried to determine this from the minimal symbol.
If there is any other method of determining a variable is "tls" before
its owning symtab is linked in, could you please inform? I used this
section number as I could not find another way of determining this..
next prev parent reply other threads:[~2008-08-06 11:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1217480020.4755.1.camel@vinaysridhar.in.ibm.com>
2008-08-02 17:18 ` Jan Kratochvil
2008-08-04 19:36 ` Luis Machado
2008-08-05 13:26 ` [patch] Finish removing <bug-gdb@prep.ai.mit.edu> (PR gdb/1543) Jan Kratochvil
2008-08-06 12:13 ` Daniel Jacobowitz
2008-08-04 19:40 ` [patch] Re: Accessing tls variables across files causes a bug Ulrich Weigand
2008-08-05 8:39 ` Vinay Sridhar
2008-08-05 12:22 ` Daniel Jacobowitz
2008-08-06 11:16 ` Vinay Sridhar [this message]
2008-08-06 11:25 ` Daniel Jacobowitz
2008-08-06 11:43 ` Jan Kratochvil
2008-08-06 15:20 ` Jan Kratochvil
2008-08-27 4:37 ` Vinay Sridhar
2009-06-12 17:06 ` [resolved] " Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1218021410.13466.4.camel@vinaysridhar.in.ibm.com \
--to=vinay@linux.vnet.ibm.com \
--cc=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=jan.kratochvil@redhat.com \
--cc=luisgpm@linux.vnet.ibm.com \
--cc=uweigand@de.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox