delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/06/24/13:46:52

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: .init, .fini etc sections -- do these work?
24 Jun 1998 13:46:52 -0700 :
Message-ID: <Pine.HPP.3.96.980624152809.125B-100000.cygnus.cygwin32.developers@hp2.xraylith.wisc.edu>
References: <199806241948 DOT PAA03909 AT subrogation DOT cygnus DOT com>
Mime-Version: 1.0
To: Ian Lance Taylor <ian AT cygnus DOT com>
Cc: sos AT prospect DOT com DOT ru, cygwin32-developers AT cygnus DOT com

On Wed, 24 Jun 1998, Ian Lance Taylor wrote:

>> Sergey wrote:
>> 
>>    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.
> 

But this shouldn't be an issue here since both .init and .fini *are*
mentioned in the linker script. There is a also the issue of readonly 
data section I want to turn (.rdata is also in the script).

Hopefully I'm not missing the point here.

btw, does the .init and .fini sections in PE work the same way as on SVR4?

Regards,
Mumit

- Raw text -


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