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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [arm/] [uclinux-elf.h] - Blame information for rev 756

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

Line No. Rev Author Line
1 709 jeremybenn
/* Definitions for ARM running ucLinux using ELF
2
   Copyright (C) 1999, 2001, 2004, 2005, 2007, 2008, 2009, 2011
3
   Free Software Foundation, Inc.
4
   Contributed by Philip Blundell <pb@nexus.co.uk>
5
 
6
   This file is part of GCC.
7
 
8
   GCC is free software; you can redistribute it and/or modify it
9
   under the terms of the GNU General Public License as published
10
   by the Free Software Foundation; either version 3, or (at your
11
   option) any later version.
12
 
13
   GCC is distributed in the hope that it will be useful, but WITHOUT
14
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16
   License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with GCC; see the file COPYING3.  If not see
20
   <http://www.gnu.org/licenses/>.  */
21
 
22
/* We don't want a PLT.  */
23
#undef  NEED_PLT_RELOC
24
#define NEED_PLT_RELOC 0
25
 
26
#undef  TARGET_DEFAULT
27
#define TARGET_DEFAULT (MASK_SINGLE_PIC_BASE)
28
 
29
/* NOTE: The remaining definitions in this file are needed because uclinux
30
   does not use config/linux.h.  */
31
 
32
/* Add GNU/Linux builtins.  */
33
#undef TARGET_OS_CPP_BUILTINS
34
#define TARGET_OS_CPP_BUILTINS()                \
35
  do                                            \
36
    {                                           \
37
      builtin_define ("__uClinux__");           \
38
      builtin_define ("__gnu_linux__");         \
39
      builtin_define_std ("linux");             \
40
      builtin_define_std ("unix");              \
41
      builtin_assert ("system=linux");          \
42
      builtin_assert ("system=unix");           \
43
      builtin_assert ("system=posix");          \
44
    }                                           \
45
  while (false)
46
 
47
/* Do not assume anything about header files.  */
48
#define NO_IMPLICIT_EXTERN_C
49
 
50
/* The GNU C++ standard library requires that these macros be defined.  */
51
#undef CPLUSPLUS_CPP_SPEC
52
#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
53
 
54
#undef SUBTARGET_EXTRA_LINK_SPEC
55
#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux"
56
 
57
/* Now we define the strings used to build the spec file.  */
58
#undef  STARTFILE_SPEC
59
#define STARTFILE_SPEC  "crt1%O%s crti%O%s crtbegin%O%s"
60
 
61
#undef  ENDFILE_SPEC
62
#define ENDFILE_SPEC    "crtend%O%s crtn%O%s"
63
 
64
#undef  CC1_SPEC
65
#define CC1_SPEC "%{profile:-p}"
66
 
67
#undef LINK_GCC_C_SEQUENCE_SPEC
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
 
76
#undef LINK_SPEC
77
#define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} -X -elf2flt"
78
 
79
#undef  LIB_SPEC
80
#define LIB_SPEC \
81
  "%{pthread:-lpthread} \
82
   %{shared:-lc} \
83
   %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
84
 
85
#define TARGET_DEFAULT_WORD_RELOCATIONS 1

powered by: WebSVN 2.1.0

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