|
From: | Simon 'corecode' Schubert |
Subject: | Re: [Tinycc-devel] TLS/__thread support |
Date: | Sun, 26 Aug 2007 10:02:59 +0200 |
User-agent: | Thunderbird 2.0.0.4 (X11/20070627) |
Rob Landley wrote:
I'm under the vague impression it just goes into another ELF section, but I don't know the details.Do you have any opinons on if or how to support thread local storage (TLS) support (via the __thread keyword)?
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. thanks simon -- 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 / \
[Prev in Thread] | Current Thread | [Next in Thread] |