1 /* This file is is generated by a shell script. DO NOT EDIT! */
3 /* emulate the original gld for the given mipsidt
4 Copyright (C) 1991, 1993 Free Software Foundation, Inc.
5 Written by Steve Chamberlain steve@cygnus.com
7 This file is part of GLD, the Gnu Linker.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
23 #define TARGET_IS_mipsidt
36 static void gldmipsidt_before_parse PARAMS ((void));
37 static char *gldmipsidt_get_script PARAMS ((int *isfile));
40 gldmipsidt_before_parse()
42 #ifndef TARGET_ /* I.e., if not generic. */
43 ldfile_output_architecture = bfd_arch_mips;
44 #endif /* not TARGET_ */
48 gldmipsidt_get_script(isfile)
53 if (link_info.relocateable == true && config.build_constructors == true)
54 return "OUTPUT_FORMAT(\"ecoff-bigmips\")\n\
92 else if (link_info.relocateable == true)
93 return "OUTPUT_FORMAT(\"ecoff-bigmips\")\n\
130 else if (!config.text_read_only)
131 return "OUTPUT_FORMAT(\"ecoff-bigmips\")\n\
135 .text 0xa0012000 : {\n\
176 else if (!config.magic_demand_paged)
177 return "OUTPUT_FORMAT(\"ecoff-bigmips\")\n\
181 .text 0xa0012000 : {\n\
223 return "OUTPUT_FORMAT(\"ecoff-bigmips\")\n\
227 .text 0xa0012000 : {\n\
270 struct ld_emulation_xfer_struct ld_mipsidt_emulation =
272 gldmipsidt_before_parse,
276 after_allocation_default,
277 set_output_arch_default,
278 ldemul_default_target,
279 before_allocation_default,
280 gldmipsidt_get_script,