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]

Re: [Patch] pe-i386: Fix --subsystem windows option


On Thu, Aug 07, 2003 at 10:38:11AM +1000, Danny Smith wrote:
>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.

Looks right.  It seems like this has been broken for a long time.
Hard to believe.

Ok to apply.

cgf

>Index: emultempl/pe.em
>===================================================================
>RCS file: /cvs/src/src/ld/emultempl/pe.em,v
>retrieving revision 1.80
>diff -c -3 -p -r1.80 pe.em
>*** emultempl/pe.em	27 Jun 2003 00:38:25 -0000	1.80
>--- emultempl/pe.em	6 Aug 2003 23:53:08 -0000
>*************** gld_${EMULATION_NAME}_before_parse (void
>*** 141,149 ****
>  
>  #if (PE_DEF_SUBSYSTEM == 9) || (PE_DEF_SUBSYSTEM == 2)
>  #if defined TARGET_IS_mipspe || defined TARGET_IS_armpe
>!   lang_add_entry ("WinMainCRTStartup", 1);
>  #else
>!   lang_add_entry ("_WinMainCRTStartup", 1);
>  #endif
>  #endif
>  #endif
>--- 141,149 ----
>  
>  #if (PE_DEF_SUBSYSTEM == 9) || (PE_DEF_SUBSYSTEM == 2)
>  #if defined TARGET_IS_mipspe || defined TARGET_IS_armpe
>!   lang_add_entry ("WinMainCRTStartup", FALSE);
>  #else
>!   lang_add_entry ("_WinMainCRTStartup", FALSE);
>  #endif
>  #endif
>  #endif
>*************** set_pe_subsystem (void)
>*** 439,445 ****
>  	      entry = alc_entry;
>  	    }
>  
>! 	  lang_add_entry (entry, 0);
>  
>  	  return;
>  	}
>--- 439,445 ----
>  	      entry = alc_entry;
>  	    }
>  
>! 	  lang_add_entry (entry, TRUE);
>  
>  	  return;
>  	}
>
>http://personals.yahoo.com.au - Yahoo! Personals
>-  New people, new possibilities! Try Yahoo! Personals, FREE for a limited period!


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