From c3d002bb17cfd9f6898b5d08b21f1ea8511d0d14 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 12 Sep 1999 16:45:16 +0000 Subject: [PATCH] Define ENTRY in PE emulation files. Also: * emulparams/i386pe.sh (ENTRY): Define as _mainCRTStartup. --- ld/emulparams/arm_epoc_pe.sh | 1 + ld/emulparams/armpe.sh | 1 + ld/emulparams/i386pe.sh | 2 +- ld/emulparams/mcorepe.sh | 1 + ld/emulparams/ppcpe.sh | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ld/emulparams/arm_epoc_pe.sh b/ld/emulparams/arm_epoc_pe.sh index 8911d8d12d..ca1a309f72 100644 --- a/ld/emulparams/arm_epoc_pe.sh +++ b/ld/emulparams/arm_epoc_pe.sh @@ -4,5 +4,6 @@ OUTPUT_FORMAT="epoc-pei-arm-little" LITTLE_OUTPUT_FORMAT="epoc-pei-arm-little" BIG_OUTPUT_FORMAT="epoc-pei-arm-big" TEMPLATE_NAME=pe +ENTRY="_mainCRTStartup" SUBSYSTEM=PE_DEF_SUBSYSTEM INITIAL_SYMBOL_CHAR=\"_\" diff --git a/ld/emulparams/armpe.sh b/ld/emulparams/armpe.sh index 383d7619e9..257c9ded5f 100644 --- a/ld/emulparams/armpe.sh +++ b/ld/emulparams/armpe.sh @@ -4,5 +4,6 @@ OUTPUT_FORMAT="pei-arm-little" LITTLE_OUTPUT_FORMAT="pei-arm-little" BIG_OUTPUT_FORMAT="pei-arm-big" TEMPLATE_NAME=pe +ENTRY="_mainCRTStartup" SUBSYSTEM=PE_DEF_SUBSYSTEM INITIAL_SYMBOL_CHAR=\"_\" diff --git a/ld/emulparams/i386pe.sh b/ld/emulparams/i386pe.sh index 582eed2c85..a8add23d6d 100644 --- a/ld/emulparams/i386pe.sh +++ b/ld/emulparams/i386pe.sh @@ -3,6 +3,6 @@ SCRIPT_NAME=pe OUTPUT_FORMAT="pei-i386" RELOCATEABLE_OUTPUT_FORMAT="pe-i386" TEMPLATE_NAME=pe -ENTRY="___mainCRTStartup" +ENTRY="_mainCRTStartup" SUBSYSTEM=PE_DEF_SUBSYSTEM INITIAL_SYMBOL_CHAR=\"_\" diff --git a/ld/emulparams/mcorepe.sh b/ld/emulparams/mcorepe.sh index a151e37ede..00ab4dd00d 100644 --- a/ld/emulparams/mcorepe.sh +++ b/ld/emulparams/mcorepe.sh @@ -4,5 +4,6 @@ OUTPUT_FORMAT="pei-mcore-big" LITTLE_OUTPUT_FORMAT="pei-mcore-little" BIG_OUTPUT_FORMAT="pei-mcore-big" TEMPLATE_NAME=pe +ENTRY="_mainCRTStartup" SUBSYSTEM=PE_DEF_SUBSYSTEM INITIAL_SYMBOL_CHAR=\"_\" diff --git a/ld/emulparams/ppcpe.sh b/ld/emulparams/ppcpe.sh index 9a5521cacf..a2d09ef223 100644 --- a/ld/emulparams/ppcpe.sh +++ b/ld/emulparams/ppcpe.sh @@ -2,5 +2,6 @@ ARCH=powerpc SCRIPT_NAME=ppcpe OUTPUT_FORMAT="pei-powerpcle" TEMPLATE_NAME=pe +ENTRY="_mainCRTStartup" SUBSYSTEM=PE_DEF_SUBSYSTEM INITIAL_SYMBOL_CHAR=\"_\"