This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: TLS, 2015 edition


On Tue, Mar 31, 2015 at 11:26:02AM +0100, Szabolcs Nagy wrote:
> 
> 
> On 30/03/15 23:50, Stan Shebs wrote:
> > Through a series of unfortunate events (starting with an infinite loop
> > in an obscure Java test) I seem to have inherited the async-safe TLS
> > problem.
> > 
> 
> i don't know about this bug, but i assume this is a lazy
> binding issue
> 
> in that case linking with '-z now' should solve the problem
> (..assuming glibc does the dynamic tls allocation at load
> time then and at thread creation time)

Using -z now only affects _binding_, not allocation of dynamic TLS.
Except for TLSDESC, lazy binding is never used for TLS, so -z now has
no effect at all.

Rich


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