1 /* Definitions for ARM running ucLinux using ELF 2 Copyright (C) 1999, 2001, 2004, 2005 Free Software Foundation, Inc. 3 Contributed by Philip Blundell <pb@nexus.co.uk> 4 5 This file is part of GCC. 6 7 GCC is free software; you can redistribute it and/or modify it 8 under the terms of the GNU General Public License as published 9 by the Free Software Foundation; either version 2, or (at your 10 option) any later version. 11 12 GCC is distributed in the hope that it will be useful, but WITHOUT 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 15 License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; see the file COPYING. If not, write to 19 the Free Software Foundation, 51 Franklin Street, Fifth Floor, 20 Boston, MA 02110-1301, USA. */ 21 22 /* We don't want a PLT. */ 23 #undef NEED_PLT_RELOC 24 #define NEED_PLT_RELOC 0 25 26 #undef TARGET_VERSION 27 #define TARGET_VERSION fputs (" (ARM/ELF ucLinux)", stderr); 28 29 #undef TARGET_DEFAULT 30 #define TARGET_DEFAULT (MASK_SINGLE_PIC_BASE) 31 32 /* NOTE: The remaining definitions in this file are needed because uclinux 33 does not use config/linux.h. */ 34 35 /* Do not assume anything about header files. */ 36 #define NO_IMPLICIT_EXTERN_C 37 38 /* The GNU C++ standard library requires that these macros be defined. */ 39 #undef CPLUSPLUS_CPP_SPEC 40 #define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)" 41 42 /* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add 43 the GNU/Linux magical crtbegin.o file (see crtstuff.c) which 44 provides part of the support for getting C++ file-scope static 45 object constructed before entering `main'. */ 46 47 #undef STARTFILE_SPEC 48 #define STARTFILE_SPEC \ 49 "%{!shared: \ 50 %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \ 51 %{!p:%{profile:gcrt1.o%s} \ 52 %{!profile:crt1.o%s}}}} \ 53 crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" 54 55 /* Provide a ENDFILE_SPEC appropriate for GNU/Linux. Here we tack on 56 the GNU/Linux magical crtend.o file (see crtstuff.c) which 57 provides part of the support for getting C++ file-scope static 58 object constructed before entering `main', followed by a normal 59 GNU/Linux "finalizer" file, `crtn.o'. */ 60 61 #undef ENDFILE_SPEC 62 #define ENDFILE_SPEC \ 63 "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s" 64 65 #undef CC1_SPEC 66 #define CC1_SPEC "%{profile:-p}" 67 68 #define LINK_GCC_C_SEQUENCE_SPEC \ 69 "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" 70 71 /* Use --as-needed -lgcc_s for eh support. */ 72 #ifdef HAVE_LD_AS_NEEDED 73 #define USE_LD_AS_NEEDED 1 74 #endif 75