You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2006/05/22 20:01:30 UTC

[jira] Updated: (STDCXX-182) [Sun C++ 5.7] -O -Kpic relocation error on an indexed __thread expression

     [ http://issues.apache.org/jira/browse/STDCXX-182?page=all ]

Martin Sebor updated STDCXX-182:
--------------------------------

        Summary: [Sun C++ 5.7] -O -Kpic relocation error on an indexed __thread expression  (was: Sun C++ 5.7 -O -Kpic relocation error on an indexed __thread expression)
    Fix Version: 4.1.4
        Version: 4.1.3

> [Sun C++ 5.7] -O -Kpic relocation error on an indexed __thread expression
> -------------------------------------------------------------------------
>
>          Key: STDCXX-182
>          URL: http://issues.apache.org/jira/browse/STDCXX-182
>      Project: C++ Standard Library
>         Type: Bug

>   Components: External
>     Versions: 4.1.3
>  Environment: Sun C++ 5.7
>     Reporter: Martin Sebor
>      Fix For: 4.1.4

>
> $ cat t.cpp && CC -c -mt -O -KPIC t.cpp && CC -G -mt t.o -o libso.so
> && CC t.cpp -DMAIN -mt -L. -lso && LD_LIBRARY_PATH=. ./a.out
> int foo ();
> #ifdef MAIN
> int main () { return foo (); }
> #else
> static __thread int i [1];
> static __thread int j [2];
> int foo () { return i [j [0] + j [1]]; }
> #endif
> ld.so.1: ./a.out: fatal: relocation error: R_SPARC_JMP_SLOT: 
> unidentifiable procedure reference: link-map 0xff3ef1e4, offset 
> 0x3fce01, called from 0xff38054c
> Killed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira