FSF GCC merge 02/23/03
[official-gcc.git] / gcc / config / vax / netbsd-elf.h
blobe28d1a157439d9a1ee7c51d38001be59b55e0a05
1 /* Definitions of target machine for GNU compiler,
2 for NetBSD/vax ELF systems.
3 Copyright (C) 2002 Free Software Foundation, Inc.
5 This file is part of GNU CC.
7 GNU CC 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, or (at your option)
10 any later version.
12 GNU CC 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 GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
22 /* Names to predefine in the preprocessor for this target OS. */
23 #undef TARGET_OS_CPP_BUILTINS
24 #define TARGET_OS_CPP_BUILTINS() \
25 do \
26 { \
27 NETBSD_OS_CPP_BUILTINS_ELF(); \
28 } \
29 while (0)
31 #undef CPP_SPEC
32 #define CPP_SPEC NETBSD_CPP_SPEC
34 #define NETBSD_ENTRY_POINT "__start"
36 #undef LINK_SPEC
37 #if 1
38 /* FIXME: We must link all executables statically until PIC support
39 is added to the compiler. */
40 #define LINK_SPEC \
41 "%{assert*} %{R*} %{rpath*} \
42 %{shared:%eThe -shared option is not currently supported for VAX ELF.} \
43 %{!shared: \
44 -dc -dp \
45 %{!nostdlib: \
46 %{!r*: \
47 %{!e*:-e %(netbsd_entry_point)}}} \
48 %{!static:-static} \
49 %{static:-static}}"
50 #else
51 #define LINK_SPEC NETBSD_LINK_SPEC_ELF
52 #endif
54 #define EXTRA_SPECS \
55 { "netbsd_entry_point", NETBSD_ENTRY_POINT },
57 /* We use gas, not the UNIX assembler. */
58 #undef TARGET_DEFAULT
59 #define TARGET_DEFAULT 0
61 #undef ASM_FINAL_SPEC