diff options
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/pe.em | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index df7692d..a4ed25d 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -1,5 +1,6 @@ # This shell script emits a C file. -*- C -*- # It does some substitutions. +test -z "${ENTRY}" && ENTRY="_mainCRTStartup" if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH} else @@ -143,6 +144,8 @@ gld_${EMULATION_NAME}_before_parse (void) #else lang_default_entry ("_WinMainCRTStartup"); #endif +#else + lang_default_entry ("${ENTRY}"); #endif #endif } |