This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [2][GCC 3.2] dll/exe exceptions patch


 --- Danny Smith <danny_r_smith_2001@yahoo.co.nz> wrote: > I have modified the
Adriano dos Santos Fernandes  patchset somewhat so that
> it
> can be used with both cygwin and mingw, changing "mingw" to "w32" in symbol
> names and taking out changes to the mingw runtime and put in gcc runtime.
> Instead of calling __w32_initialize_shared_ptr from __main, it is called by a
> constructor from crtend.o so it happens at same time as registration of
> eh_frame. The w32-shared-ptr.c code ends up in a startup module I have called
> crts.o. 

Putting into new startup module (crts.o) may cause potential problem with ld
--export-all, with the the symbols being exported from every dll that uses
--export-all (either explicitly or by default rules).  This hasn't created any
actual problems in my tests, but it seems dangerous.  

One fixup would be to add yet another default exclude to ld/pe-dll.c.  The
other is to put the module into something alrady excluded.  I've chosen to do
the latter and added as an  LIB2FUNCS_EXTRA to be put in libgcc.a.

I will commit the revised patchset after regression tests have been completed.

Danny

http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]