stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-182) [Sun C++ 5.7] -O -Kpic relocation error on an indexed __thread expression
Date Thu, 11 Oct 2007 01:32:50 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

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

             Severity: Runtime Error
    Affects Version/s:     (was: 4.1.3)
        Fix Version/s:     (was: 4.2)

Removed version info since this is an External issue (i.e., one in a third party product).
Set Severity to Runtime Error (the error actually happens at load time, i.e., strictly speaking
before the program starts to run).

> [Sun C++ 5.7] -O -Kpic relocation error on an indexed __thread expression
> -------------------------------------------------------------------------
>
>                 Key: STDCXX-182
>                 URL: https://issues.apache.org/jira/browse/STDCXX-182
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: External
>         Environment: Sun C++ 5.7
>            Reporter: Martin Sebor
>
> $ 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message