This is a test to see if the file is still locked.
[deliverable/binutils-gdb.git] / ld / ld-vanilla.c
CommitLineData
da56abdf
SC
1/* Copyright (C) 1991 Free Software Foundation, Inc.
2
3This file is part of GLD, the Gnu Linker.
4
5GLD is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 1, or (at your option)
8any later version.
9
10GLD is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with GLD; see the file COPYING. If not, write to
17the 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
41extern boolean lang_float_flag;
42
43
44extern enum bfd_architecture ldfile_output_architecture;
45extern unsigned long ldfile_output_machine;
46extern char *ldfile_output_machine_name;
47
48extern bfd *output_bfd;
49
50
51
52static void vanilla_before_parse()
53{
54}
55
56
57static void
58vanilla_after_parse()
59{
60
61}
62
63static void
64vanilla_after_allocation()
65{
66
67}
68
69static void
70vanilla_before_allocation()
71{
72
73}
74
75
76static void
77vanilla_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
84static char *
85vanilla_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
93static void
94vanilla_syslib()
95{
96 info("%S SYSLIB ignored\n");
97}
98
99static void
100vanilla_hll(ignore)
101char *ignore;
102{
103 info("%S HLL ignored\n");
104}
105
106
107static char *vanilla_get_script()
108{
109return "";
110}
111
112struct 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.051042 seconds and 4 git commands to generate.