[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] TLS/__thread support

From: Simon 'corecode' Schubert
Subject: Re: [Tinycc-devel] TLS/__thread support
Date: Sun, 26 Aug 2007 10:02:59 +0200
User-agent: Thunderbird (X11/20070627)

Rob Landley wrote:
Do you have any opinons on if or how to support thread local storage (TLS)
support (via the __thread keyword)?
I'm under the vague impression it just goes into another ELF section, but I don't know the details.

No, it needs a relocation entry of type R_386_TLS_LE (for the object file) or 
R_386_TLS_TPOFF (for a shared object).  Of course, before, the variable access 
has to be constructed to use %gs relative addresses.  So the code generation 
path would have to be changed for that as well.

And I guess idealy the internal linker would need to deal with this as well.


Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

reply via email to

[Prev in Thread] Current Thread [Next in Thread]