gcc:
[official-gcc.git] / gcc / config / m68k / uclinux.h
blob82124f9619e03a20a43b754daa5da8efac76ff7c
1 /* Definitions of target machine for GCC. m68k/ColdFire based uClinux system
2 using ELF objects with special linker post-processing to produce FLAT
3 executables.
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)
12 any later version.
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 /* Undo the definition of STARTFILE_SPEC from m68kelf.h so we'll
26 pick the default from gcc.c (just link crt0.o from multilib dir). */
27 #undef STARTFILE_SPEC
29 /* Override the default LIB_SPEC from gcc.c. We don't currently support
30 profiling, or libg.a. */
31 #undef LIB_SPEC
32 #define LIB_SPEC "\
33 %{mid-shared-library:-R libc.gdb%s -elf2flt -shared-lib-id 0} -lc \
36 /* we don't want a .eh_frame section. */
37 #define EH_FRAME_IN_DATA_SECTION
39 /* ??? Quick hack to get constructors working. Make this look more like a
40 COFF target, so the existing dejagnu/libgloss support works. A better
41 solution would be to make the necessary dejagnu and libgloss changes so
42 that we can use normal the ELF constructor mechanism. */
43 #undef INIT_SECTION_ASM_OP
44 #undef FINI_SECTION_ASM_OP
45 #undef ENDFILE_SPEC
46 #define ENDFILE_SPEC ""
48 /* Bring in standard linux defines */
49 #undef TARGET_OS_CPP_BUILTINS
50 #define TARGET_OS_CPP_BUILTINS() \
51 do \
52 { \
53 builtin_define_std ("mc68000"); \
54 builtin_define ("__uClinux__"); \
55 builtin_define_std ("linux"); \
56 builtin_define_std ("unix"); \
57 builtin_define ("__gnu_linux__"); \
58 builtin_assert ("system=linux"); \
59 builtin_assert ("system=unix"); \
60 builtin_assert ("system=posix"); \
61 if (TARGET_ID_SHARED_LIBRARY) \
62 builtin_define ("__ID_SHARED_LIBRARY__"); \
63 } \
64 while (0)