This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Patch; let -subsystem option on pe targets actually affect entrysymbol
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: Christopher Faylor <me at cgf dot cx>, binutils <binutils at sources dot redhat dot com>
- Date: Tue, 04 Oct 2005 20:30:04 +1300
- Subject: Re: Patch; let -subsystem option on pe targets actually affect entrysymbol
- References: <20050927105950.49952.qmail@web50905.mail.yahoo.com><20050928132711.GA13244@trixie.casa.cgf.cx>
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
----- Original Message -----
From: "Christopher Faylor"
Sent: Thursday, 29 September 2005 02:27
> On Tue, Sep 27, 2005 at 10:59:50PM +1200, Danny Smith wrote:
> >However, I believe this may resurrect some old problems on cygwin, which
> >does not provide a WinMainCRTStartup fumction. There used to be
> >instructions in cygwin users guide on how to work-around this (ie, when
> >setting windows subsystem either add an explict -e _mainCRTStartup or
> >add a stub WinMainCRTStartup that just calls the console entry symbol),
> >but those instruction have been removed.
>
> It sounds like, for cygwin, the simple solution for this, is to just include
> a WinMainCRTStartup function which calls _manCRTStartup, right?
>
> cgf
Corrina's winsup commit to add a WinMainCRTStartup alias to cygwin's crt0.c
gets rid of the cygwin
--subsystem windows warnings.
Is the patch now okay to commit?
* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
default entry symbol to ENTRY here.
* scripttempl/pe.sc: Not here.
Danny