This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49541] [4.6/4.7 regression] TLS support partially broken in 64-bit mode
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 Jul 2011 19:35:35 +0000
- Subject: [Bug target/49541] [4.6/4.7 regression] TLS support partially broken in 64-bit mode
- Auto-submitted: auto-generated
- References: <bug-49541-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49541
--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-07-13 19:34:48 UTC ---
> This is strange: in my case, libgomp.so is self-contained and linked
> with the right libthread.so which provides __tls_get_addr:
>
> > LD_LIBRARY_PATH=. ldd -r ./libgomp.so.1
> librt.so.1 => /usr/lib/64/librt.so.1
> libgcc_s.so.1 => ./libgcc_s.so.1
> libpthread.so.1 => /usr/lib/64/libpthread.so.1
> libthread.so.1 => /usr/lib/lwp/64/libthread.so.1
> libc.so.1 => /usr/lib/64/libc.so.1
> libaio.so.1 => /usr/lib/64/libaio.so.1
> libdl.so.1 => /usr/lib/64/libdl.so.1
> /usr/platform/SUNW,Sun-Fire-V440/lib/sparcv9/libc_psr.so.1
Same here, but the link line starts with:
/nile.build/botcazou/gcc-head/sparc-sun-solaris2.8/gcc/collect2 -V -Y
P,/lib/sparcv9:/usr/lib/sparcv9 -Qy -o ./condinc2.exe
and this apparently overrides it.