Remove rcfonts.tex after building refcard.
[deliverable/binutils-gdb.git] / ld / ld-vanilla.c
1 /* Copyright (C) 1991 Free Software Foundation, Inc.
2
3 This file is part of GLD, the Gnu Linker.
4
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)
8 any later version.
9
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.
14
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. */
18
19 /*
20 * $Id$
21 *
22 */
23
24 /*
25 * A vanilla emulation with no defaults
26 *
27 * Written by Steve Chamberlain steve@cygnus.com
28 */
29
30
31 #include "sysdep.h"
32 #include "bfd.h"
33
34
35 #include "ld.h"
36 #include "config.h"
37 #include "ld-emul.h"
38 #include "ldfile.h"
39 #include "ldmisc.h"
40
41 extern boolean lang_float_flag;
42
43
44 extern enum bfd_architecture ldfile_output_architecture;
45 extern unsigned long ldfile_output_machine;
46 extern char *ldfile_output_machine_name;
47
48 extern bfd *output_bfd;
49
50
51
52 static void vanilla_before_parse()
53 {
54 }
55
56
57 static void
58 vanilla_after_parse()
59 {
60
61 }
62
63 static void
64 vanilla_after_allocation()
65 {
66
67 }
68
69 static void
70 vanilla_before_allocation()
71 {
72
73 }
74
75
76 static void
77 vanilla_set_output_arch()
78 {
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);
82 }
83
84 static char *
85 vanilla_choose_target()
86 {
87 char *from_outside = getenv(TARGET_ENVIRON);
88 if (from_outside != (char *)NULL)
89 return from_outside;
90 return VANILLA_TARGET;
91 }
92
93 static void
94 vanilla_syslib()
95 {
96 info("%S SYSLIB ignored\n");
97 }
98
99 static void
100 vanilla_hll(ignore)
101 char *ignore;
102 {
103 info("%S HLL ignored\n");
104 }
105
106
107 static char *vanilla_get_script()
108 {
109 return "";
110 }
111
112 struct ld_emulation_xfer_struct ld_vanilla_emulation =
113 {
114 vanilla_before_parse,
115 vanilla_syslib,
116 vanilla_hll,
117 vanilla_after_parse,
118 vanilla_after_allocation,
119 vanilla_set_output_arch,
120 vanilla_choose_target,
121 vanilla_before_allocation,
122 vanilla_get_script,
123 };
124
This page took 0.036696 seconds and 4 git commands to generate.