OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [m68k/] [uclinux.h] - Blame information for rev 820

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* 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.
4
 
5
   Copyright (C) 2003, 2007 Free Software Foundation, Inc.
6
 
7
This file is part of GCC.
8
 
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 3, or (at your option)
12
any later version.
13
 
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.
18
 
19
You should have received a copy of the GNU General Public License
20
along with GCC; see the file COPYING3.  If not see
21
<http://www.gnu.org/licenses/>.  */
22
 
23
 
24
/* Undo the definition of STARTFILE_SPEC from m68kelf.h so we'll
25
   pick the default from gcc.c (just link crt0.o from multilib dir).  */
26
#undef  STARTFILE_SPEC
27
 
28
/* Override the default LIB_SPEC from gcc.c.  We don't currently support
29
   profiling, or libg.a.  */
30
#undef LIB_SPEC
31
#define LIB_SPEC "\
32
%{mid-shared-library:-R libc.gdb%s -elf2flt -shared-lib-id 0} -lc \
33
"
34
 
35
/* we don't want a .eh_frame section.  */
36
#define EH_FRAME_IN_DATA_SECTION
37
 
38
/* ??? Quick hack to get constructors working.  Make this look more like a
39
   COFF target, so the existing dejagnu/libgloss support works.  A better
40
   solution would be to make the necessary dejagnu and libgloss changes so
41
   that we can use normal the ELF constructor mechanism.  */
42
#undef INIT_SECTION_ASM_OP
43
#undef FINI_SECTION_ASM_OP
44
#undef ENDFILE_SPEC
45
#define ENDFILE_SPEC ""
46
 
47
/* Bring in standard linux defines */
48
#undef TARGET_OS_CPP_BUILTINS
49
#define TARGET_OS_CPP_BUILTINS()                \
50
  do                                            \
51
    {                                           \
52
        builtin_define_std ("mc68000");         \
53
        builtin_define ("__uClinux__");         \
54
        builtin_define_std ("linux");           \
55
        builtin_define_std ("unix");            \
56
        builtin_define ("__gnu_linux__");       \
57
        builtin_assert ("system=linux");        \
58
        builtin_assert ("system=unix");         \
59
        builtin_assert ("system=posix");        \
60
        if (TARGET_ID_SHARED_LIBRARY)           \
61
          builtin_define ("__ID_SHARED_LIBRARY__"); \
62
    }                                           \
63
  while (0)
64
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.