This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Does GCC support TLS or SEH?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Jonathan Wilson <jonwil at tpgi dot com dot au>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, gcc at gcc dot gnu dot org
- Date: Sun, 31 Aug 2003 21:17:53 -0700
- Subject: Re: Does GCC support TLS or SEH?
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