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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [m32r/] [linux.h] - Blame information for rev 760

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

Line No. Rev Author Line
1 709 jeremybenn
/* Definitions for Renesas M32R running Linux-based GNU systems using ELF.
2
   Copyright (C) 2003, 2004, 2006, 2007, 2010, 2011
3
   Free Software Foundation, Inc.
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 3, 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 GCC; see the file COPYING3.  If not see
19
   <http://www.gnu.org/licenses/>.  */
20
 
21
#undef  SIZE_TYPE
22
#define SIZE_TYPE "unsigned int"
23
 
24
#undef  PTRDIFF_TYPE
25
#define PTRDIFF_TYPE "int"
26
 
27
#undef  WCHAR_TYPE
28
#define WCHAR_TYPE "long int"
29
 
30
#undef  WCHAR_TYPE_SIZE
31
#define WCHAR_TYPE_SIZE BITS_PER_WORD
32
 
33
/* Provide a LINK_SPEC appropriate for Linux.  Here we provide support
34
   for the special GCC options -static and -shared, which allow us to
35
   link things in one of these three modes by applying the appropriate
36
   combinations of options at link-time.
37
 
38
   When the -shared link option is used a final link is not being
39
   done.  */
40
 
41
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
42
 
43
#undef  LINK_SPEC
44
#if TARGET_LITTLE_ENDIAN
45
#define LINK_SPEC "%(link_cpu) -m m32rlelf_linux %{shared:-shared} \
46
  %{!shared: \
47
    %{!static: \
48
      %{rdynamic:-export-dynamic} \
49
      -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
50
      %{static:-static}}"
51
#else
52
#define LINK_SPEC "%(link_cpu) -m m32relf_linux %{shared:-shared} \
53
  %{!shared: \
54
    %{!static: \
55
      %{rdynamic:-export-dynamic} \
56
      -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
57
      %{static:-static}}"
58
#endif
59
 
60
#undef  LIB_SPEC
61
#define LIB_SPEC \
62
  "%{pthread:-lpthread} \
63
   %{shared: -lc} \
64
   %{!shared: \
65
       %{mieee-fp:-lieee} \
66
       %{profile:-lc_p} %{!profile: -lc}}"
67
 
68
#undef  STARTFILE_SPEC
69
#if defined HAVE_LD_PIE
70
#define STARTFILE_SPEC \
71
  "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
72
   crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
73
#else
74
#define STARTFILE_SPEC \
75
  "%{!shared: \
76
     %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\
77
   crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
78
#endif
79
 
80
#undef  ENDFILE_SPEC
81
#define ENDFILE_SPEC \
82
  "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
83
 
84
#undef  SUBTARGET_CPP_SPEC
85
#define SUBTARGET_CPP_SPEC "\
86
   %{posix:-D_POSIX_SOURCE} \
87
   %{pthread:-D_REENTRANT -D_PTHREADS} \
88
"
89
 
90
#define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
91
 
92
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack

powered by: WebSVN 2.1.0

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