This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

thread local storage


Dear All

    I am experimenting with tls by declaring some variables with the
    keyword __thread i.e.

           __thread int i;

    The code compiles but when linking I get an unresolved symbol
  
            __tls_get_addr

    I have read the tls.pdf paper at redhat and searched the web. I gather
    that the linker must produce this symbol but obviously does not.

    I am using SuSE 8.2 professional - gcc 3.3 20030226 - ld 2.13.90.0.18 
20030121
     
    I am not subscribed so please reply to address below. 

    Any help would be much appreciated.

Regards
Paul
-- 
Paul Hewlett                        E-mail <paulh AT issi DOT co DOT za>
ISS International Ltd               Web    <http://www.issi.co.za>
P.O. Box 12063                      tel  +27 (21) 809-2090
DIE BOORD 7613                      fax  +27 (21) 809-2061
REPUBLIC OF SOUTH AFRICA            cel  +27 83 549 4801
____________________________________________________________________

This e-mail message contains confidential information which is
intended for the use of the person to whom it is addressed.  If you
received it in error, please notify the sender and delete the
material from any computer.  Any disclosure, re-transmission,
dissemination or any other use of this information is strictly
prohibited.
____________________________________________________________________



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]