lint
[deliverable/binutils-gdb.git] / ld / vanilla.em
CommitLineData
6ecb2b74
PB
1cat >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
6This file is part of GLD, the Gnu Linker.
7
8This program is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 2 of the License, or
11(at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program; if not, write to the Free Software
20Foundation, 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
32extern boolean lang_float_flag;
33
34
35extern enum bfd_architecture ldfile_output_architecture;
36extern unsigned long ldfile_output_machine;
37extern char *ldfile_output_machine_name;
38
39extern bfd *output_bfd;
40
41
42
43static void vanilla_before_parse()
44{
45}
46
47static void
48vanilla_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
55static char *vanilla_get_script()
56{
57 return "";
58}
59
60struct 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};
74EOF
This page took 0.028867 seconds and 4 git commands to generate.