1 /* Definitions of target machine for GCC. m68k/ColdFire based uClinux system
2 using ELF objects with special linker post-processing to produce FLAT
5 Copyright (C) 2003 Free Software Foundation, Inc.
7 This file is part of GCC.
9 GCC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
14 GCC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING. If not, write to
21 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA. */
25 #define TARGET_VERSION fprintf (stderr, " (68k uClinux)");
28 #define STARTFILE_SPEC \
29 "%{mshared-library-id=0|!mshared-library-id=*: crt1.o%s ;: Scrt1.o%s} \
30 crti.o%s crtbegin.o%s"
33 #define ENDFILE_SPEC "crtend.o%s crtn.o%s"
35 /* Override the default LIB_SPEC from gcc.c. We don't currently support
36 profiling, or libg.a. */
39 "%{mid-shared-library:%{!static-libc:-R libc.gdb%s}} -lc"
41 /* Default to using -elf2flt with no options. */
44 "%{!elf2flt*:-elf2flt} \
45 %{mid-shared-library: \
46 %{mshared-library-id=*:-shared-lib-id %*;:-shared-lib-id 0}}"
48 #undef TARGET_OS_CPP_BUILTINS
49 #define TARGET_OS_CPP_BUILTINS() \
52 LINUX_TARGET_OS_CPP_BUILTINS (); \
53 builtin_define ("__uClinux__"); \
54 if (TARGET_ID_SHARED_LIBRARY) \
56 builtin_define ("__ID_SHARED_LIBRARY__"); \
57 /* Shared libraries and executables do not share \
59 builtin_define ("__GXX_MERGED_TYPEINFO_NAMES=0"); \
60 builtin_define ("__GXX_TYPEINFO_EQUALITY_INLINE=0"); \
65 /* -msep-data is the default PIC mode on this target. */
66 #define DRIVER_SELF_SPECS \
67 "%{fpie|fPIE|fpic|fPIC:%{!msep-data:%{!mid-shared-library: -msep-data}}}"
69 /* The uclinux binary format relies on relocations against a segment being
70 within that segment. Conservatively apply this rule to individual
72 #undef M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P
73 #define M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P 1