netbsd.h revision 90075
1/* Definitions of target machine for GNU compiler, 2 for PowerPC NetBSD systems. 3 Copyright 2001 Free Software Foundation, Inc. 4 5This file is part of GNU CC. 6 7GNU CC is free software; you can redistribute it and/or modify 8it under the terms of the GNU General Public License as published by 9the Free Software Foundation; either version 2, or (at your option) 10any later version. 11 12GNU CC is distributed in the hope that it will be useful, 13but WITHOUT ANY WARRANTY; without even the implied warranty of 14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15GNU General Public License for more details. 16 17You should have received a copy of the GNU General Public License 18along with GNU CC; see the file COPYING. If not, write to 19the Free Software Foundation, 59 Temple Place - Suite 330, 20Boston, MA 02111-1307, USA. */ 21 22/* Under NetBSD, the normal location of the various *crt*.o files is 23 the /usr/lib directory [from config/netbsd.h]. */ 24 25#undef STANDARD_STARTFILE_PREFIX 26#define STANDARD_STARTFILE_PREFIX "/usr/lib/" 27 28/* FIXME: Should this macro be treated the same as for the other 29 spec's? */ 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. */ 33 34#undef LINK_SHLIB_SPEC 35#define LINK_SHLIB_SPEC "\ 36%{shared:-shared} \ 37%{!shared: %{static:-dc -dp -static}} \ 38%{!shared: %{!static:-dc -dp}} \ 39" 40 41/* Override the defaults. */ 42#undef LIB_DEFAULT_SPEC 43#define LIB_DEFAULT_SPEC "%(lib_netbsd)" 44 45#undef STARTFILE_DEFAULT_SPEC 46#define STARTFILE_DEFAULT_SPEC "%(startfile_netbsd)" 47 48#undef ENDFILE_DEFAULT_SPEC 49#define ENDFILE_DEFAULT_SPEC "%(endfile_netbsd)" 50 51#undef LINK_START_DEFAULT_SPEC 52#define LINK_START_DEFAULT_SPEC "%(link_start_netbsd)" 53 54#undef LINK_OS_DEFAULT_SPEC 55#define LINK_OS_DEFAULT_SPEC "%(link_os_netbsd)" 56 57#undef CPP_OS_DEFAULT_SPEC 58#define CPP_OS_DEFAULT_SPEC "%(cpp_os_netbsd)" 59 60#undef TARGET_VERSION 61#define TARGET_VERSION fprintf (stderr, " (PowerPC NetBSD/ELF)"); 62 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 67