1 /* This file is is generated by a shell script. DO NOT EDIT! */
3 /* emulate the original gld for the given sh
4 Copyright (C) 1991, 1993, 2000 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
25 #include "libiberty.h"
39 static void gldsh_before_parse
PARAMS ((void));
40 static char *gldsh_get_script
PARAMS ((int *isfile
));
45 #ifndef TARGET_ /* I.e., if not generic. */
46 ldfile_output_architecture
= bfd_arch_sh
;
47 #endif /* not TARGET_ */
51 gldsh_get_script(isfile
)
56 if (link_info
.relocateable
== true && config
.build_constructors
== true)
59 "OUTPUT_FORMAT(\"coff-sh\")\n\
63 ram : o = 0x1000, l = 512k\n\
103 ; else if (link_info
.relocateable
== true) return
105 "OUTPUT_FORMAT(\"coff-sh\")\n\
109 ram : o = 0x1000, l = 512k\n\
122 ___ctors_end = . ;\n\
125 ___dtors_end = . ;\n\
149 ; else if (!config
.text_read_only
) return
151 "OUTPUT_FORMAT(\"coff-sh\")\n\
155 ram : o = 0x1000, l = 512k\n\
169 ___ctors_end = . ;\n\
172 ___dtors_end = . ;\n\
186 "," .stack 0x30000 :\n\
191 "," .stab 0 (NOLOAD) :\n\
195 "," .stabstr 0 (NOLOAD) :\n\
200 ; else if (!config
.magic_demand_paged
) return
202 "OUTPUT_FORMAT(\"coff-sh\")\n\
206 ram : o = 0x1000, l = 512k\n\
220 ___ctors_end = . ;\n\
223 ___dtors_end = . ;\n\
237 "," .stack 0x30000 :\n\
242 "," .stab 0 (NOLOAD) :\n\
246 "," .stabstr 0 (NOLOAD) :\n\
253 "OUTPUT_FORMAT(\"coff-sh\")\n\
257 ram : o = 0x1000, l = 512k\n\
271 ___ctors_end = . ;\n\
274 ___dtors_end = . ;\n\
288 "," .stack 0x30000 :\n\
293 "," .stab 0 (NOLOAD) :\n\
297 "," .stabstr 0 (NOLOAD) :\n\
304 struct ld_emulation_xfer_struct ld_sh_emulation
=
311 after_allocation_default
,
312 set_output_arch_default
,
313 ldemul_default_target
,
314 before_allocation_default
,