This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Re: Accessing tls variables across files causes a bug


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..


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]