NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/48324: ld.elf_so - tty.c memcpy overwrites tcb for tls variant 2



The following reply was made to PR lib/48324; it has been noted by GNATS.

From: Nat Sloss <nathanialsloss%yahoo.com.au@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/48324: ld.elf_so - tty.c memcpy overwrites tcb for tls variant 
2
Date: Mon, 21 Oct 2013 12:25:23 +1100

 Hi.
 
 I was trying many things to get it passed the atf tls dlopen test.
 
 It turns out if you declare var4 as __thread volatile var4 = 1 it passes.
 
 So I guess it has something to do with compiler optimization.
 
 So I patched the define containing __thread with __thread volatile in libmpfr 
 and all is well.  So I don't think that ld.elf_so/libpthread needs changing.
 
 Thank you to everyone who worked on this.
 
 Should I submit another PR with the changes to the mpfr package or should I 
 deal with it here?
 
 
 Regards,
 
 Nat.
 


Home | Main Index | Thread Index | Old Index