Add ability for individual targets to have their own command line switches by
defining PARSE_AND_LIST_ARGS.
This commit is contained in:
parent
9e525108fe
commit
3b108066c9
|
@ -1,3 +1,8 @@
|
||||||
|
1999-08-23 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
|
* emultempl/elf32.em: Add ability for individual targets to have
|
||||||
|
their own command line switches by defining PARSE_AND_LIST_ARGS.
|
||||||
|
|
||||||
1999-08-19 Andreas Schwab <schwab@suse.de>
|
1999-08-19 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
* configure.host: Use ${CC} instead of gcc for finding compiler
|
* configure.host: Use ${CC} instead of gcc for finding compiler
|
||||||
|
|
|
@ -1119,6 +1119,22 @@ EOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -n "$PARSE_AND_LIST_ARGS" ; then
|
||||||
|
cat >>e${EMULATION_NAME}.c <<EOF
|
||||||
|
static int gld_${EMULATION_NAME}_parse_args PARAMS ((int, char **));
|
||||||
|
static void gld_${EMULATION_NAME}_list_options PARAMS ((FILE * file));
|
||||||
|
|
||||||
|
$PARSE_AND_LIST_ARGS
|
||||||
|
EOF
|
||||||
|
else
|
||||||
|
|
||||||
|
cat >>e${EMULATION_NAME}.c <<EOF
|
||||||
|
#define gld_${EMULATION_NAME}_parse_args NULL
|
||||||
|
#define gld_${EMULATION_NAME}_list_options NULL
|
||||||
|
EOF
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
cat >>e${EMULATION_NAME}.c <<EOF
|
cat >>e${EMULATION_NAME}.c <<EOF
|
||||||
|
|
||||||
struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
|
struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
|
||||||
|
@ -1135,14 +1151,14 @@ struct ld_emulation_xfer_struct ld_${EMULATION_NAME}_emulation =
|
||||||
gld${EMULATION_NAME}_get_script,
|
gld${EMULATION_NAME}_get_script,
|
||||||
"${EMULATION_NAME}",
|
"${EMULATION_NAME}",
|
||||||
"${OUTPUT_FORMAT}",
|
"${OUTPUT_FORMAT}",
|
||||||
NULL,
|
NULL, /* finish */
|
||||||
NULL,
|
NULL, /* create output section statements */
|
||||||
gld${EMULATION_NAME}_open_dynamic_archive,
|
gld${EMULATION_NAME}_open_dynamic_archive,
|
||||||
gld${EMULATION_NAME}_place_orphan,
|
gld${EMULATION_NAME}_place_orphan,
|
||||||
NULL, /* set_symbols */
|
NULL, /* set_symbols */
|
||||||
NULL, /* parse_args */
|
gld_${EMULATION_NAME}_parse_args,
|
||||||
NULL, /* unrecognized_file */
|
NULL, /* unrecognized_file */
|
||||||
NULL, /* list_options */
|
gld_${EMULATION_NAME}_list_options,
|
||||||
NULL /* recognized_file */
|
NULL /* recognized_file */
|
||||||
};
|
};
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue