1 /* Common VxWorks target definitions for GCC.
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 Contributed by Wind River Systems.
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 2, or (at your option)
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 COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* Specify what to link with. */
23 /* VxWorks does all the library stuff itself. */
28 #define LINK_SPEC "-r"
30 /* VxWorks provides the functionality of crt0.o and friends itself. */
32 #define STARTFILE_SPEC ""
35 #define ENDFILE_SPEC ""
37 /* VxWorks cannot have dots in constructor labels, because it uses a
38 mutant variation of collect2 that generates C code instead of
39 assembly. Thus each constructor label must be a legitimate C
40 symbol. FIXME: Have VxWorks use real collect2 instead. */
42 #undef NO_DOLLAR_IN_LABEL
43 #define NO_DOT_IN_LABEL
45 /* enable #pragma pack(n) */
46 #define HANDLE_SYSV_PRAGMA
48 /* No underscore is prepended to any C symbol name. */
49 #undef USER_LABEL_PREFIX
50 #define USER_LABEL_PREFIX ""
52 /* VxWorks uses wchar_t == unsigned short (UCS2) on all architectures. */
54 #define WCHAR_TYPE "short unsigned int"
55 #undef WCHAR_TYPE_SIZE
56 #define WCHAR_TYPE_SIZE 16
58 /* Dwarf2 unwind info is not supported. */
59 #define DWARF2_UNWIND_INFO 0
60 /* Weak symbols and link-once sections are not enabled by default. */
61 #define DEFAULT_USE_WEAK 0
63 /* Only supported debug format is Dwarf2. */
64 #undef DBX_DEBUGGING_INFO
65 #undef DWARF_DEBUGGING_INFO