Merged with mainline at revision 128810.
[official-gcc.git] / gcc / config / vax / netbsd-elf.h
blobed71b5af07f6a2a60ca1d67d9f4391b5f0b5b64e
1 /* Definitions of target machine for GNU compiler,
2 for NetBSD/vax ELF systems.
3 Copyright (C) 2002, 2007 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC 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 3, or (at your option)
10 any later version.
12 GCC 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 GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 /* Names to predefine in the preprocessor for this target OS. */
22 #undef TARGET_OS_CPP_BUILTINS
23 #define TARGET_OS_CPP_BUILTINS() \
24 do \
25 { \
26 NETBSD_OS_CPP_BUILTINS_ELF(); \
27 } \
28 while (0)
30 #undef CPP_SPEC
31 #define CPP_SPEC NETBSD_CPP_SPEC
33 #define NETBSD_ENTRY_POINT "__start"
35 #undef LINK_SPEC
36 #if 1
37 /* FIXME: We must link all executables statically until PIC support
38 is added to the compiler. */
39 #define LINK_SPEC \
40 "%{assert*} %{R*} %{rpath*} \
41 %{shared:%ethe -shared option is not currently supported for VAX ELF} \
42 %{!shared: \
43 -dc -dp \
44 %{!nostdlib: \
45 %{!r*: \
46 %{!e*:-e %(netbsd_entry_point)}}} \
47 %{!static:-static} \
48 %{static:-static}}"
49 #else
50 #define LINK_SPEC NETBSD_LINK_SPEC_ELF
51 #endif
53 #define EXTRA_SPECS \
54 { "netbsd_entry_point", NETBSD_ENTRY_POINT },
56 /* We use gas, not the UNIX assembler. */
57 #undef TARGET_DEFAULT
58 #define TARGET_DEFAULT 0