delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/06/24/11:18:41

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: <Pine.HPP.3.96.980624124732.29492A-100000.cygnus.cygwin32.developers@hp2.xraylith.wisc.edu>
Mime-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019