This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH to ld/emultempl/pe.em: Don't override explicit -e entry point because o f --subsystem switch


Currently the following fails to produce a valid dll
because  the startup entry routine is set to mainCRTStartup by the
subsystem switch:
ld -ofoo.dll --shared -e _DllMainCRTStartup@12 --subsystem console ...

The second part of this patch was wromg:

2003-08-07  Danny Smith  <dannysmith@users.sourceforge.net>

	* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
	Change second (cmdline) arg to lang_add_entry to FALSE.
	(set_pe_subsystem): Change second arg to lang_add_entry to TRUE.


The --subsystem switch should not be overriding explicit command line
-e specification. 

This reverts the change to set_pe_subsystem

2004-12-28  Danny Smith  <dannysmith@users.sourceforge.net>

	* emultempl/pe.em (set_pe_subsystem): Change second arg to
	lang_add_entry to FALSE.


Index: emultempl/pe.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/pe.em,v
retrieving revision 1.100
diff -c -3 -p -r1.100 pe.em
*** emultempl/pe.em	26 Nov 2004 09:42:04 -0000	1.100
--- emultempl/pe.em	28 Dec 2004 22:11:03 -0000
*************** set_pe_subsystem (void)
*** 467,473 ****
        entry = alc_entry;
      }
  
!   lang_add_entry (entry, TRUE);
  
    return;
  }
--- 467,473 ----
        entry = alc_entry;
      }
  
!   lang_add_entry (entry, FALSE);
  
    return;
  }

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com


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