This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cygwin32 relocatable linking error?


   From: jeffdbREMOVETHIS@goodnet.com (Mikey)
   Date: Sat, 06 Jun 1998 05:08:42 GMT

   shouldn't pe.sc have
   ${RELOCATING+ENTRY(_mainCRTStartup)}
   ?

   instead of just 
   ENTRY(_mainCRTStartup)

   otherwise ld -r puts an undefined _mainCRTStartup in every
   intermediate object file, which can mess up a final link
   if you are using _WinMainCRTStartup(), _DllMainCRTStartup or some other
   entry point.

Are you sure?  That does not happen when I try it.

The ENTRY keyword does not change the symbol table at all, nor does it
change which objects are included in the link.  It only affects the
setting of the entry point field in the internal a.out header.

Ian