diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-09-20 21:16:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-09-20 21:16:11 +0000 |
commit | 8603728123aff1957f47f724033f6fbac176d873 (patch) | |
tree | 7d0fcd8157750faefdd2d94228cfa772a3c86ce3 /ld/emulparams | |
parent | 237402b49bf1c601582baa389ad339170ea26762 (diff) | |
download | gdb-8603728123aff1957f47f724033f6fbac176d873.zip gdb-8603728123aff1957f47f724033f6fbac176d873.tar.gz gdb-8603728123aff1957f47f724033f6fbac176d873.tar.bz2 |
* 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.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/elf32mipb.sh | 2 | ||||
-rw-r--r-- | ld/emulparams/elf32mipl.sh | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ld/emulparams/elf32mipb.sh b/ld/emulparams/elf32mipb.sh index 154b9df..470497d 100644 --- a/ld/emulparams/elf32mipb.sh +++ b/ld/emulparams/elf32mipb.sh @@ -1,5 +1,7 @@ SCRIPT_NAME=elf OUTPUT_FORMAT="elf32-bigmips" +BIG_OUTPUT_FORMAT="elf32-bigmips" +LITTLE_OUTPUT_FORMAT="elf32-littlemips" TEXT_START_ADDR=0x0400000 DATA_ADDR=0x10000000 MAXPAGESIZE=0x40000 diff --git a/ld/emulparams/elf32mipl.sh b/ld/emulparams/elf32mipl.sh index 4a710dc..bb91f350 100644 --- a/ld/emulparams/elf32mipl.sh +++ b/ld/emulparams/elf32mipl.sh @@ -1,5 +1,7 @@ SCRIPT_NAME=elf OUTPUT_FORMAT="elf32-littlemips" +BIG_OUTPUT_FORMAT="elf32-bigmips" +LITTLE_OUTPUT_FORMAT="elf32-littlemips" TEXT_START_ADDR=0x0400000 DATA_ADDR=0x10000000 MAXPAGESIZE=0x40000 |