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.

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   / \


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to