Commit | Line | Data |
---|---|---|
6ecb2b74 PB |
1 | cat >ld__${EMULATION_NAME}.c <<EOF |
2 | /* A vanilla emulation with no defaults | |
3 | Copyright (C) 1991 Free Software Foundation, Inc. | |
4 | Written by Steve Chamberlain steve@cygnus.com | |
5 | ||
6 | This file is part of GLD, the Gnu Linker. | |
7 | ||
8 | This program is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 2 of the License, or | |
11 | (at your option) any later version. | |
12 | ||
13 | This program is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with this program; if not, write to the Free Software | |
20 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
21 | ||
22 | #include "bfd.h" | |
23 | #include "sysdep.h" | |
24 | ||
25 | ||
26 | #include "ld.h" | |
27 | #include "config.h" | |
28 | #include "ldemul.h" | |
29 | #include "ldfile.h" | |
30 | #include "ldmisc.h" | |
31 | ||
32 | extern boolean lang_float_flag; | |
33 | ||
34 | ||
35 | extern enum bfd_architecture ldfile_output_architecture; | |
36 | extern unsigned long ldfile_output_machine; | |
37 | extern char *ldfile_output_machine_name; | |
38 | ||
39 | extern bfd *output_bfd; | |
40 | ||
41 | ||
42 | ||
43 | static void vanilla_before_parse() | |
44 | { | |
45 | } | |
46 | ||
47 | static void | |
48 | vanilla_set_output_arch() | |
49 | { | |
50 | /* Set the output architecture and machine if possible */ | |
51 | unsigned long machine = 0; | |
52 | bfd_set_arch_mach(output_bfd, ldfile_output_architecture, machine); | |
53 | } | |
54 | ||
55 | static char *vanilla_get_script() | |
56 | { | |
57 | return ""; | |
58 | } | |
59 | ||
60 | struct ld_emulation_xfer_struct ld_vanilla_emulation = | |
61 | { | |
62 | vanilla_before_parse, | |
63 | syslib_default, | |
64 | hll_default, | |
65 | after_parse_default, | |
66 | after_allocation_default, | |
67 | vanilla_set_output_arch, | |
68 | ldemul_default_target, | |
69 | before_allocation_default, | |
70 | vanilla_get_script, | |
71 | "vanilla", | |
72 | "a.out-sunos-big" | |
73 | }; | |
74 | EOF |