From: khan AT xraylith DOT wisc DOT edu (Mumit Khan) Subject: .init, .fini etc sections -- do these work? 24 Jun 1998 11:18:41 -0700 Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: cygwin32-developers AT cygnus DOT com A while back Stan Cox I believe had asked why cygwin32 port of gcc doesn't used these sections, and I don't see any followups in the mailing list. Has anybody tried? I'm looking at going revisiting the issue of dwarf2 based EH, and it would be nice to know if .init section worked or not before getting started. I'd like to avoid __attribute__((constructor)) or calling from __main solution if I possibly can. If these do work, then I suggest making the following changes: 1. For gcc: use crtstuff.c that already does most of this (after defining the appropriate macros in i386/cygwin32.h of course). 2. For cygwin: fix winsup/dcrt0.c and other startup routines. Ditto for mingw32 startup code. Regards, Mumit