1 /* Copyright (C) 1991 Free Software Foundation, Inc.
3 This file is part of GLD, the Gnu Linker.
5 GLD is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 1, or (at your option)
10 GLD is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GLD; see the file COPYING. If not, write to
17 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
25 * A vanilla emulation with no defaults
27 * Written by Steve Chamberlain steve@cygnus.com
41 extern boolean lang_float_flag;
44 extern enum bfd_architecture ldfile_output_architecture;
45 extern unsigned long ldfile_output_machine;
46 extern char *ldfile_output_machine_name;
48 extern bfd *output_bfd;
52 static void vanilla_before_parse()
64 vanilla_after_allocation()
70 vanilla_before_allocation()
77 vanilla_set_output_arch()
79 /* Set the output architecture and machine if possible */
80 unsigned long machine = 0;
81 bfd_set_arch_mach(output_bfd, ldfile_output_architecture, machine);
85 vanilla_choose_target()
87 char *from_outside = getenv(TARGET_ENVIRON);
88 if (from_outside != (char *)NULL)
90 return VANILLA_TARGET;
96 info("%S SYSLIB ignored\n");
103 info("%S HLL ignored\n");
107 static char *vanilla_get_script()
112 struct ld_emulation_xfer_struct ld_vanilla_emulation =
114 vanilla_before_parse,
118 vanilla_after_allocation,
119 vanilla_set_output_arch,
120 vanilla_choose_target,
121 vanilla_before_allocation,