diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2005-10-05 08:07:51 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2005-10-05 08:07:51 +0000 |
commit | e60cc41502a4f1e00e70af0d3e2ceaca1ec6e15a (patch) | |
tree | 675910130437db84921b68c94033b09840bb9e11 /ld/emultempl | |
parent | f70224b53d8d0a8ff7305fbfb8dd6860ae53df69 (diff) | |
download | gdb-e60cc41502a4f1e00e70af0d3e2ceaca1ec6e15a.zip gdb-e60cc41502a4f1e00e70af0d3e2ceaca1ec6e15a.tar.gz gdb-e60cc41502a4f1e00e70af0d3e2ceaca1ec6e15a.tar.bz2 |
* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
default entry symbol to ENTRY here.
* scripttempl/pe.sc: Not here.
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 } |