From: ian AT cygnus DOT com (Ian Lance Taylor) Subject: Re: .init, .fini etc sections -- do these work? 24 Jun 1998 13:16:45 -0700 Message-ID: <199806241948.PAA03909.cygnus.cygwin32.developers@subrogation.cygnus.com> References: <01BD9FCA DOT 69102D80 AT sos> To: sos AT prospect DOT com DOT ru Cc: cygwin32-developers AT cygnus DOT com, khan AT xraylith DOT wisc DOT edu From: Sergey Okhapkin Date: Wed, 24 Jun 1998 23:47:11 +0400 Mumit Khan wrote: > 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? > If objects contains some sections not defined in linker's script, ld generates invalid executable :-( This can be fixed for particular sections in ld/scripttempl/pe.sc. It can be fixed in general in ld/emultempl/pe.em in the function gld_${EMULATION_NAME}_place_orphan. That function can arrange for the section to be properly aligned, or whatever. Ian