1 cat >em_${EMULATION_NAME}.c <<EOF
2 /* Copyright (C) 1991 Free Software Foundation, Inc.
4 This file is part of GLD, the Gnu Linker.
6 GLD is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 1, or (at your option)
11 GLD is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GLD; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
34 extern boolean lang_float_flag;
37 extern enum bfd_architecture ldfile_output_architecture;
38 extern unsigned long ldfile_output_machine;
39 extern char *ldfile_output_machine_name;
41 extern bfd *output_bfd;
45 static void z8ksim_before_parse()
47 ldfile_output_architecture = bfd_arch_z8k;
50 static char *z8ksim_script =
53 static char *z8ksim_script_option_Ur =
56 static char *z8ksim_script_option_r =
60 static char *z8ksim_get_script()
62 extern ld_config_type config;
63 if (config.relocateable_output == true &&
64 config.build_constructors == true) {
65 return z8ksim_script_option_Ur;
67 if (config.relocateable_output) {
68 return z8ksim_script_option_r;
73 struct ld_emulation_xfer_struct ld_z8ksim_emulation =
79 after_allocation_default,
80 set_output_arch_default,
81 ldemul_default_target,
82 before_allocation_default,