vxworks.h revision 132718
1/* Common VxWorks target definitions for GCC. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 3 Contributed by Wind River Systems. 4 5This file is part of GCC. 6 7GCC 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 12GCC 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 GCC; see the file COPYING. If not, write to 19the Free Software Foundation, 59 Temple Place - Suite 330, 20Boston, MA 02111-1307, USA. */ 21 22/* Specify what to link with. */ 23/* VxWorks does all the library stuff itself. */ 24#undef LIB_SPEC 25#define LIB_SPEC "" 26 27#undef LINK_SPEC 28#define LINK_SPEC "-r" 29 30/* VxWorks provides the functionality of crt0.o and friends itself. */ 31#undef STARTFILE_SPEC 32#define STARTFILE_SPEC "" 33 34#undef ENDFILE_SPEC 35#define ENDFILE_SPEC "" 36 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. */ 41 42#undef NO_DOLLAR_IN_LABEL 43#define NO_DOT_IN_LABEL 44 45/* enable #pragma pack(n) */ 46#define HANDLE_SYSV_PRAGMA 47 48/* No underscore is prepended to any C symbol name. */ 49#undef USER_LABEL_PREFIX 50#define USER_LABEL_PREFIX "" 51 52/* VxWorks uses wchar_t == unsigned short (UCS2) on all architectures. */ 53#undef WCHAR_TYPE 54#define WCHAR_TYPE "short unsigned int" 55#undef WCHAR_TYPE_SIZE 56#define WCHAR_TYPE_SIZE 16 57 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 62 63/* Only supported debug format is Dwarf2. */ 64#undef DBX_DEBUGGING_INFO 65