1 /* A vanilla emulation with no defaults
2 Copyright (C) 1991 Free Software Foundation, Inc.
3 Written by Steve Chamberlain steve@cygnus.com
5 This file is part of GLD, the Gnu Linker.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
35 extern boolean lang_float_flag
;
38 extern enum bfd_architecture ldfile_output_architecture
;
39 extern unsigned long ldfile_output_machine
;
40 extern char *ldfile_output_machine_name
;
42 extern bfd
*output_bfd
;
46 static void vanilla_before_parse()
58 vanilla_after_allocation()
64 vanilla_before_allocation()
71 vanilla_set_output_arch()
73 /* Set the output architecture and machine if possible */
74 unsigned long machine
= 0;
75 bfd_set_arch_mach(output_bfd
, ldfile_output_architecture
, machine
);
79 vanilla_choose_target()
81 char *from_outside
= getenv(TARGET_ENVIRON
);
82 if (from_outside
!= (char *)NULL
)
84 return VANILLA_TARGET
;
90 info("%S SYSLIB ignored\n");
97 info("%S HLL ignored\n");
101 static char *vanilla_get_script()
106 struct ld_emulation_xfer_struct ld_vanilla_emulation
=
108 vanilla_before_parse
,
112 vanilla_after_allocation
,
113 vanilla_set_output_arch
,
114 vanilla_choose_target
,
115 vanilla_before_allocation
,