Bug 12990 - Many TLS tests fail on Solaris 11/x86 with gold
Summary: Many TLS tests fail on Solaris 11/x86 with gold
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: 2.22
: P2 normal
Target Milestone: ---
Assignee: Ian Lance Taylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-12 18:56 UTC by Rainer Orth
Modified: 2011-07-12 18:56 UTC (History)
0 users

See Also:
Host: i386-pc-solaris2.11
Target: i386-pc-solaris2.11
Build: i386-pc-solaris2.11
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2011-07-12 18:56:49 UTC
Despite the excellent gold testsuite results on Solaris 11/x86, gcc testresults
were terrible.  Most of the failures seem to be due to two issues, though:

Many of the TLS tests fail, particularly (only including -O0):

32-bit:

FAIL: gcc.dg/torture/tls/run-ie.c  -O0  execution test
FAIL: gcc.dg/torture/tls/run-le.c  -O0  execution test

64-bit:

FAIL: gcc.dg/torture/tls/run-ie.c  -O0  execution test
FAIL: gcc.dg/torture/tls/run-ld.c  -O0  execution test
FAIL: gcc.dg/torture/tls/run-le.c  -O0  execution test

My strong suspicion is that gold needs fixes along the lines of

Properly align static TLS segments on Solaris 2
http://sourceware.org/ml/binutils/2010-09/msg00485.html
http://sourceware.org/ml/binutils/2010-10/msg00291.html

and

Properly align static TLS segments on Solaris 2/SPARC
http://sourceware.org/ml/binutils/2010-10/msg00348.html