All the testsuite failures (except libgomp.c++/ctor-9.C) with Sun as/ld
  http://gcc.gnu.org/ml/gcc-testresults/2006-11/msg00764.html
are of the form:

ld: fatal: relocation error: R_SPARC_TLS_LE_HIX22: file /var/tmp//ccuoqyTO.o:
  symbol <unknown>: bad symbol type SECT: symbol type must be TLS

It's a Sun ld problem (GNU ld silently groks the same object file), which can
be reproduced with the Sun toolchain:

hikaru% cc -V
cc: Sun C 5.8 Patch 121015-03 2006/10/18
usage: cc [ options] files.  Use 'cc -flags' for details
hikaru% cat t.c
static __thread int i = 1;

int main(void)
{
  return i;
}
hikaru% cc -S t.c -O
hikaru% cc -o t t.s
ld: fatal: relocation error: R_SPARC_TLS_IE_HI22: file t.o: symbol <unknown>:
bad symbol type SECT: symbol type must be TLS
hikaru% cc -o t t.c -O
hikaru%


-- 
           Summary: testsuite failures
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ebotcazou at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.10
  GCC host triplet: sparc-sun-solaris2.10
GCC target triplet: sparc-sun-solaris2.10


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29986

Reply via email to