From 5f8ac7e7f634e6774204ba4a0ac566fbc39daa38 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Thu, 31 Aug 1995 23:42:53 +0000 Subject: [PATCH] Thu Aug 31 16:37:07 1995 steve chamberlain * ldemul.c (ldemul_parse_args): New. * ldemul.h (ld_emulation_xfer_struct): Add parse_args. * lexsup.c (all pe stuff): Moved into pe.em (parse_args): Call emulation arg parser. * emultempl/pe.em (parse_args): handle PE specfic args. --- ld/ChangeLog | 8 + ld/emultempl/pe.em | 486 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 494 insertions(+) create mode 100644 ld/emultempl/pe.em diff --git a/ld/ChangeLog b/ld/ChangeLog index 6914e7e0815..3ab38befeab 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +Thu Aug 31 16:37:07 1995 steve chamberlain + + * ldemul.c (ldemul_parse_args): New. + * ldemul.h (ld_emulation_xfer_struct): Add parse_args. + * lexsup.c (all pe stuff): Moved into pe.em + (parse_args): Call emulation arg parser. + * emultempl/pe.em (parse_args): handle PE specfic args. + Thu Aug 31 17:01:37 1995 Ian Lance Taylor * ldlang.c (lang_memory_region_lookup): Don't use the first region diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em new file mode 100644 index 00000000000..9e9a590e95f --- /dev/null +++ b/ld/emultempl/pe.em @@ -0,0 +1,486 @@ +# This shell script emits a C file. -*- C -*- +# It does some substitutions. +cat >e${EMULATION_NAME}.c <> e${EMULATION_NAME}.c +sed $sc ldscripts/${EMULATION_NAME}.xr >> e${EMULATION_NAME}.c +echo ' ; else if (!config.text_read_only) return' >> e${EMULATION_NAME}.c +sed $sc ldscripts/${EMULATION_NAME}.xbn >> e${EMULATION_NAME}.c +echo ' ; else if (!config.magic_demand_paged) return' >> e${EMULATION_NAME}.c +sed $sc ldscripts/${EMULATION_NAME}.xn >> e${EMULATION_NAME}.c +echo ' ; else return' >> e${EMULATION_NAME}.c +sed $sc ldscripts/${EMULATION_NAME}.x >> e${EMULATION_NAME}.c +echo '; }' >> e${EMULATION_NAME}.c + +cat >>e${EMULATION_NAME}.c <