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

Daniel Jacobowitz drow@false.org
Wed Aug 6 11:25:00 GMT 2008


On Wed, Aug 06, 2008 at 04:46:50PM +0530, Vinay Sridhar wrote:
> 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..

I imagine that Jan's right and we need to treat all unresolved symbols
this way - or be less eager about creating unresolved symbols.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list