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 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"
36 static void gldsh_before_parse
PARAMS ((void));
37 static char *gldsh_get_script
PARAMS ((int *isfile
));
42 #ifndef TARGET_ /* I.e., if not generic. */
43 ldfile_output_architecture
= bfd_arch_sh
;
44 #endif /* not TARGET_ */
48 gldsh_get_script(isfile
)
53 if (link_info
.relocateable
== true && config
.build_constructors
== true)
56 "OUTPUT_FORMAT(\"coff-sh\")\n\
60 ram : o = 0x1000, l = 512k\n\
100 ; else if (link_info
.relocateable
== true) return
102 "OUTPUT_FORMAT(\"coff-sh\")\n\
106 ram : o = 0x1000, l = 512k\n\
119 ___ctors_end = . ;\n\
122 ___dtors_end = . ;\n\
146 ; else if (!config
.text_read_only
) return
148 "OUTPUT_FORMAT(\"coff-sh\")\n\
152 ram : o = 0x1000, l = 512k\n\
166 ___ctors_end = . ;\n\
169 ___dtors_end = . ;\n\
183 "," .stack 0x30000 :\n\
188 "," .stab 0 (NOLOAD) :\n\
192 "," .stabstr 0 (NOLOAD) :\n\
197 ; else if (!config
.magic_demand_paged
) return
199 "OUTPUT_FORMAT(\"coff-sh\")\n\
203 ram : o = 0x1000, l = 512k\n\
217 ___ctors_end = . ;\n\
220 ___dtors_end = . ;\n\
234 "," .stack 0x30000 :\n\
239 "," .stab 0 (NOLOAD) :\n\
243 "," .stabstr 0 (NOLOAD) :\n\
250 "OUTPUT_FORMAT(\"coff-sh\")\n\
254 ram : o = 0x1000, l = 512k\n\
268 ___ctors_end = . ;\n\
271 ___dtors_end = . ;\n\
285 "," .stack 0x30000 :\n\
290 "," .stab 0 (NOLOAD) :\n\
294 "," .stabstr 0 (NOLOAD) :\n\
301 struct ld_emulation_xfer_struct ld_sh_emulation
=
308 after_allocation_default
,
309 set_output_arch_default
,
310 ldemul_default_target
,
311 before_allocation_default
,