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"
37 static void gldsh_before_parse
PARAMS ((void));
38 static char *gldsh_get_script
PARAMS ((int *isfile
));
43 #ifndef TARGET_ /* I.e., if not generic. */
44 ldfile_output_architecture
= bfd_arch_sh
;
45 #endif /* not TARGET_ */
49 gldsh_get_script(isfile
)
54 if (link_info
.relocateable
== true && config
.build_constructors
== true)
57 "OUTPUT_FORMAT(\"coff-sh\")\n\
61 ram : o = 0x1000, l = 512k\n\
101 ; else if (link_info
.relocateable
== true) return
103 "OUTPUT_FORMAT(\"coff-sh\")\n\
107 ram : o = 0x1000, l = 512k\n\
120 ___ctors_end = . ;\n\
123 ___dtors_end = . ;\n\
147 ; else if (!config
.text_read_only
) return
149 "OUTPUT_FORMAT(\"coff-sh\")\n\
153 ram : o = 0x1000, l = 512k\n\
167 ___ctors_end = . ;\n\
170 ___dtors_end = . ;\n\
184 "," .stack 0x30000 :\n\
189 "," .stab 0 (NOLOAD) :\n\
193 "," .stabstr 0 (NOLOAD) :\n\
198 ; else if (!config
.magic_demand_paged
) return
200 "OUTPUT_FORMAT(\"coff-sh\")\n\
204 ram : o = 0x1000, l = 512k\n\
218 ___ctors_end = . ;\n\
221 ___dtors_end = . ;\n\
235 "," .stack 0x30000 :\n\
240 "," .stab 0 (NOLOAD) :\n\
244 "," .stabstr 0 (NOLOAD) :\n\
251 "OUTPUT_FORMAT(\"coff-sh\")\n\
255 ram : o = 0x1000, l = 512k\n\
269 ___ctors_end = . ;\n\
272 ___dtors_end = . ;\n\
286 "," .stack 0x30000 :\n\
291 "," .stab 0 (NOLOAD) :\n\
295 "," .stabstr 0 (NOLOAD) :\n\
302 struct ld_emulation_xfer_struct ld_sh_emulation
=
309 after_allocation_default
,
310 set_output_arch_default
,
311 ldemul_default_target
,
312 before_allocation_default
,