From de71eb7786da1170ae4b4acabeb4c62513c19602 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Thu, 29 Jun 1995 00:21:00 +0000 Subject: [PATCH] Wed Jun 28 17:11:25 1995 Steve Chamberlain * ldmain.c (main): Always initialize PE info in link_info. * lexsup.c (OPTION_BASE_FILE): New option. (parse_args): Handle new option. * emulparams/armpe.sh: Output pei. * emultempl/i386pe.em: Add newline to end. * scripttempl/armpe.sc: Change output and quote the $s. * scripttempl/i386pe.sc: Change output and quote the $s. --- ld/ChangeLog | 21 ++++ ld/config/.Sanitize | 1 + ld/config/i386pe.mh | 5 + ld/emultempl/.Sanitize | 1 + ld/emultempl/armpe.em | 230 +++++++++++++++++++++++++++++++++++++++ ld/emultempl/i386pe.em | 3 +- ld/ldmain.c | 13 +++ ld/lexsup.c | 163 +++++++++++++++++++++++++-- ld/scripttempl/armpe.sc | 50 ++++----- ld/scripttempl/i386pe.sc | 50 ++++----- 10 files changed, 479 insertions(+), 58 deletions(-) create mode 100644 ld/config/i386pe.mh create mode 100644 ld/emultempl/armpe.em diff --git a/ld/ChangeLog b/ld/ChangeLog index c9d9b4ae8ee..ae09d767f71 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,24 @@ +Wed Jun 28 17:11:25 1995 Steve Chamberlain + + * ldmain.c (main): Always initialize PE info in link_info. + * lexsup.c (OPTION_BASE_FILE): New option. + (parse_args): Handle new option. + * emulparams/armpe.sh: Output pei. + * emultempl/i386pe.em: Add newline to end. + * scripttempl/armpe.sc: Change output and quote the $s. + * scripttempl/i386pe.sc: Change output and quote the $s. + +Thu Jun 22 19:55:41 1995 Ken Raeburn + + Sun May 7 11:53:41 MDT 1995 Bryan Ford + + * configure.in (i386-*-msdos*, i386-*-moss*): New targets. + * Makefile.in (ALL_EMULATIONS): Added i386msdos.o. + (i386msdos.o): New target. + * config/i386-msdos.mt: Created. + * emulparams/i386msdos.sh: Created. + * scripttempl/i386msdos.sc: Created. + Thu Jun 22 15:06:35 1995 Michael Meissner * scripttempl/elfppc.sc (.fixup): Add support for a .fixup section diff --git a/ld/config/.Sanitize b/ld/config/.Sanitize index ab50c61bba8..dac68039d70 100644 --- a/ld/config/.Sanitize +++ b/ld/config/.Sanitize @@ -79,6 +79,7 @@ i386-pe.mt i386bsd.mh i386linux.mh i386lynx.mh +i386pe.mh i386sco.mh i386v.mh i386v.mt diff --git a/ld/config/i386pe.mh b/ld/config/i386pe.mh new file mode 100644 index 00000000000..216d6a08236 --- /dev/null +++ b/ld/config/i386pe.mh @@ -0,0 +1,5 @@ +CC_FOR_BUILD=gcc +CC=i386-newlib-pe-gcc -O2 + + + diff --git a/ld/emultempl/.Sanitize b/ld/emultempl/.Sanitize index e86e2044937..c4c059fcd3d 100644 --- a/ld/emultempl/.Sanitize +++ b/ld/emultempl/.Sanitize @@ -25,6 +25,7 @@ Do-first: Things-to-keep: README +armpe.em elf32.em generic.em gld960.em diff --git a/ld/emultempl/armpe.em b/ld/emultempl/armpe.em new file mode 100644 index 00000000000..bd9dfaa3447 --- /dev/null +++ b/ld/emultempl/armpe.em @@ -0,0 +1,230 @@ +# This shell script emits a C file. -*- C -*- +# It does some substitutions. +cat >e${EMULATION_NAME}.c <