aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-08-05 16:03:56 +0000
committerIan Lance Taylor <ian@airs.com>1999-08-05 16:03:56 +0000
commita7e78dae7988898f4fa1accb446d3b73c395ee37 (patch)
treef734f58ee676590eeeacad2eb2e1044941029e70 /ld/emulparams
parent9750fcc50285f800fb0544098e1af2f11653828a (diff)
downloadfsf-binutils-gdb-a7e78dae7988898f4fa1accb446d3b73c395ee37.zip
fsf-binutils-gdb-a7e78dae7988898f4fa1accb446d3b73c395ee37.tar.gz
fsf-binutils-gdb-a7e78dae7988898f4fa1accb446d3b73c395ee37.tar.bz2
1999-08-05 Donn Terry <donn@interix.com>
* emulparams/i386pe.sh: Define ENTRY, SUBSYSTEM, and INITIAL_SYMBOL_CHAQR. * emulparams/i386pe_posix.sh: New file. * Makefile.am (YACC): If bison is not in the source tree, use @YACC@ rather than bison -y. (LEX): If flex is not in the source tree, use @LEX@ rather than flex. (ALL_EMULATIONS): Add ei386pe_posix.o. (ei386pe_posix.c): New target. * configure.tgt (i[3456]86-*-interix*): New target. * configure.host (i[3456]86-pc-interix*): New host. * Makefile.in: Rebuild.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/i386pe.sh3
-rw-r--r--ld/emulparams/i386pe_posix.sh9
2 files changed, 12 insertions, 0 deletions
diff --git a/ld/emulparams/i386pe.sh b/ld/emulparams/i386pe.sh
index 188a8ad..e5df29f 100644
--- a/ld/emulparams/i386pe.sh
+++ b/ld/emulparams/i386pe.sh
@@ -3,3 +3,6 @@ SCRIPT_NAME=pe
OUTPUT_FORMAT="pei-i386"
RELOCATEABLE_OUTPUT_FORMAT="pe-i386"
TEMPLATE_NAME=pe
+ENTRY="___mainCRTStartup"
+SUBSYSTEM=3
+INITIAL_SYMBOL_CHAR=\"_\"
diff --git a/ld/emulparams/i386pe_posix.sh b/ld/emulparams/i386pe_posix.sh
new file mode 100644
index 0000000..37f51b5
--- /dev/null
+++ b/ld/emulparams/i386pe_posix.sh
@@ -0,0 +1,9 @@
+ARCH=i386
+SCRIPT_NAME=pe
+OUTPUT_FORMAT="pei-i386"
+RELOCATEABLE_OUTPUT_FORMAT="pe-i386"
+TEMPLATE_NAME=pe
+ENTRY="___PosixProcessStartup"
+SUBSYSTEM=7
+EXECUTABLE_NAME=a.out
+INITIAL_SYMBOL_CHAR=\"_\"