Does GCC support TLS or SEH?

Andrew Pinski pinskia@physics.uc.edu
Mon Sep 1 04:18:00 GMT 2003


On Sunday, Aug 31, 2003, at 18:58 US/Pacific, Jonathan Wilson wrote:

> Does the GCC core contain support for Thread Local Storage or 
> Structured Exception Handling?


GCC supports TLS on some targets like i686-pc-linux-gnu with certain 
versions of
glibc and the binutils but not on Win32 yet, if you implement it, it 
will some faster.

>
> I would like to see if it is fesable to implement windows specific TLS 
> and SEH and if there is some sort of hooks in the GCC core already, it 
> would make it easier.


As I said TLS is there but not for Win32, I do not know anything about 
SEH
at all (I think it is signals thrown as exceptions right?)

Thanks,
Andrew Pinski


>
> Both Watcom and Microsofts linkers have a feature used for 
> constructors and also for TLS whereby a segment named .tls, a segment 
> named .tls$ and a segment named .tls$$$ will be combined into 1 
> segment called .tls with .tls first then .tls$ and .tls$$$
> Does the GCC linker have a similar feature?
> If not, how does GCC handle constructors?

GCC or binutils (GCC does not have a linker, it is a separate project) 
does not support TLS on Win32 yet.

I would say if you implement it, it will come faster.

GCC and binutils are volunteers projects (yes some are employed to work 
on them but most are still volunteers).


Thanks,
Andrew Pinski



More information about the Gcc mailing list