diff options
Diffstat (limited to 'ld/emultempl/generic.em')
-rw-r--r-- | ld/emultempl/generic.em | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ld/emultempl/generic.em b/ld/emultempl/generic.em index 35621c3..048ebbd 100644 --- a/ld/emultempl/generic.em +++ b/ld/emultempl/generic.em @@ -1,6 +1,6 @@ # This shell script emits a C file. -*- C -*- # It does some substitutions. -cat >e${EMULATION_NAME}.c <<EOF +fragment <<EOF /* This file is is generated by a shell script. DO NOT EDIT! */ /* emulate the original gld for the given ${EMULATION_NAME} @@ -45,11 +45,11 @@ EOF # Import any needed special functions and/or overrides. # if test -n "$EXTRA_EM_FILE" ; then -. ${srcdir}/emultempl/${EXTRA_EM_FILE}.em + source_em ${srcdir}/emultempl/${EXTRA_EM_FILE}.em fi if test x"$LDEMUL_BEFORE_PARSE" != xgld"$EMULATION_NAME"_before_parse; then -cat >>e${EMULATION_NAME}.c <<EOF +fragment <<EOF static void gld${EMULATION_NAME}_before_parse (void) @@ -63,7 +63,7 @@ EOF fi if test x"$LDEMUL_GET_SCRIPT" != xgld"$EMULATION_NAME"_get_script; then -cat >>e${EMULATION_NAME}.c <<EOF +fragment <<EOF static char * gld${EMULATION_NAME}_get_script (int *isfile) @@ -76,7 +76,7 @@ then # sed commands to quote an ld script as a C string. sc="-f stringify.sed" -cat >>e${EMULATION_NAME}.c <<EOF +fragment <<EOF { *isfile = 0; @@ -97,7 +97,7 @@ echo '; }' >> e${EMULATION_NAME}.c else # Scripts read from the filesystem. -cat >>e${EMULATION_NAME}.c <<EOF +fragment <<EOF { *isfile = 1; @@ -116,7 +116,7 @@ EOF fi fi -cat >>e${EMULATION_NAME}.c <<EOF +fragment <<EOF struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation = { |