1 /* Definitions of target machine for GNU compiler,
2 for PowerPC NetBSD systems.
3 Copyright 2001 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)
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, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* Under NetBSD, the normal location of the various *crt*.o files is
23 the /usr/lib directory [from config/netbsd.h]. */
25 #undef STANDARD_STARTFILE_PREFIX
26 #define STANDARD_STARTFILE_PREFIX "/usr/lib/"
28 /* FIXME: Should this macro be treated the same as for the other
30 /* NOTE: -dc and -dp are equivalent yet NetBSD's CC passes both both!
31 NetBSD's CC also passes -O1 but we can skip that. NetBSD explictly
32 sets ``-e _start'', since LD knows this, skip it. */
34 #undef LINK_SHLIB_SPEC
35 #define LINK_SHLIB_SPEC "\
37 %{!shared: %{static:-dc -dp -static}} \
38 %{!shared: %{!static:-dc -dp}} \
41 /* Override the defaults. */
42 #undef LIB_DEFAULT_SPEC
43 #define LIB_DEFAULT_SPEC "%(lib_netbsd)"
45 #undef STARTFILE_DEFAULT_SPEC
46 #define STARTFILE_DEFAULT_SPEC "%(startfile_netbsd)"
48 #undef ENDFILE_DEFAULT_SPEC
49 #define ENDFILE_DEFAULT_SPEC "%(endfile_netbsd)"
51 #undef LINK_START_DEFAULT_SPEC
52 #define LINK_START_DEFAULT_SPEC "%(link_start_netbsd)"
54 #undef LINK_OS_DEFAULT_SPEC
55 #define LINK_OS_DEFAULT_SPEC "%(link_os_netbsd)"
57 #undef CPP_OS_DEFAULT_SPEC
58 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_netbsd)"
61 #define TARGET_VERSION fprintf (stderr, " (PowerPC NetBSD/ELF)");
63 /* For backward compatibility, we must continue to use the AIX
64 structure return convention. */
65 #undef DRAFT_V4_STRUCT_RET
66 #define DRAFT_V4_STRUCT_RET 1
68 /* Use STABS debugging information by default. DWARF2 makes a mess of
70 #undef PREFERRED_DEBUGGING_TYPE
71 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG