public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* cygwin32 relocatable linking error?
@ 1998-06-05 22:10 Mikey
  1998-06-06 10:40 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Mikey @ 1998-06-05 22:10 UTC (permalink / raw)
  To: gas2

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.

=====================================================
Linux a platform built by, and for users, standing on
the firm legs of reliability, and speed.

Microsoft Windows, a platform without a leg to stand on.

(jeffdbREMOVETHIS@goodnet.com)
delete REMOVETHIS from the above to reply
         Mikey

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cygwin32 relocatable linking error?
  1998-06-05 22:10 cygwin32 relocatable linking error? Mikey
@ 1998-06-06 10:40 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 1998-06-06 10:40 UTC (permalink / raw)
  To: jeffdb; +Cc: gas2

   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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-06-06 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-05 22:10 cygwin32 relocatable linking error? Mikey
1998-06-06 10:40 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).