Mail Archives: cygwin-developers/1998/06/24/13:16:45

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: <>
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 <sos AT prospect DOT com DOT ru>
   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/  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.


- Raw text -

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