* ld.h (args_type): Add new field endian.
authorIan Lance Taylor <ian@airs.com>
Tue, 20 Sep 1994 21:16:11 +0000 (21:16 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 20 Sep 1994 21:16:11 +0000 (21:16 +0000)
commit8603728123aff1957f47f724033f6fbac176d873
tree7d0fcd8157750faefdd2d94228cfa772a3c86ce3
parent237402b49bf1c601582baa389ad339170ea26762
* ld.h (args_type): Add new field endian.
* lexsup.c (parse_args): Handle -EB and -EL by setting
command_line.endian.
* ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
* ldlang.c (lang_add_output_format): Add arguments big and little.
If command_line.endian is set, use it to select big or little
rather than the default.  Changed all callers.
* ldlang.h (lang_add_output_format): Update declaration.
* emulparams/elf32mipb.sh: Define BIG_OUTPUT_FORMAT and
LITTLE_OUTPUT_FORMAT.
* emulparams/elf32mipl.sh: Likewise.
* emulparams/mipsbig.sh: Likewise.
* emulparams/mipsbsd.sh: Likewise.
* emulparams/mipsidt.sh: Likewise.
* emulparams/mipsidtl.sh: Likewise.
* emulparams/mipslit.sh: Likewise.
* scripttempl/elf.sc: Define BIG_OUTPUT_FORMAT and
LITTLE_OUTPUT_FORMAT if not already defined.  Pass them to
OUTPUT_FORMAT.
* scripttempl/mips.sc: Pass BIG_OUTPUT_FORMAT and
LITTLE_OUTPUT_FORMAT to OUTPUT_FORMAT.
* scripttempl/mipsbsd.sc: Likewise.
ld/ChangeLog
ld/emulparams/elf32mipb.sh
ld/emulparams/elf32mipl.sh
ld/lexsup.c