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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [mips/] [linux64.h] - Blame information for rev 827

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

Line No. Rev Author Line
1 38 julius
/* Definitions for MIPS running Linux-based GNU systems with ELF format
2
   using n32/64 abi.
3
   Copyright 2002, 2003, 2004, 2005, 2006, 2007 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
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 3, or (at your option)
10
any later version.
11
 
12
GCC is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
GNU General Public 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
/* Force the default endianness and ABI flags onto the command line
22
   in order to make the other specs easier to write.  */
23
#define DRIVER_SELF_SPECS \
24
"%{!EB:%{!EL:%(endian_spec)}}", \
25
"%{!mabi=*: -mabi=n32}"
26
 
27
#undef SUBTARGET_ASM_SPEC
28
#define SUBTARGET_ASM_SPEC "\
29
%{!fno-PIC:%{!fno-pic:-KPIC}} \
30
%{fno-PIC:-non_shared} %{fno-pic:-non_shared}"
31
 
32
#undef LIB_SPEC
33
#define LIB_SPEC "\
34
%{shared: -lc} \
35
%{!shared: %{pthread:-lpthread} \
36
  %{profile:-lc_p} %{!profile: -lc}}"
37
 
38
#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
39
#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
40
#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
41
#define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
42
#define LINUX_DYNAMIC_LINKERN32 \
43
  CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
44
 
45
#undef LINK_SPEC
46
#define LINK_SPEC "\
47
%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} \
48
%{bestGnum} %{shared} %{non_shared} \
49
%{call_shared} %{no_archive} %{exact_version} \
50
 %(endian_spec) \
51
  %{!shared: \
52
    %{!ibcs: \
53
      %{!static: \
54
        %{rdynamic:-export-dynamic} \
55
        %{!dynamic-linker: \
56
          %{mabi=n32: -dynamic-linker " LINUX_DYNAMIC_LINKERN32 "} \
57
          %{mabi=64: -dynamic-linker " LINUX_DYNAMIC_LINKER64 "} \
58
          %{mabi=32: -dynamic-linker " LINUX_DYNAMIC_LINKER32 "}}} \
59
      %{static:-static}}} \
60
%{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \
61
%{mabi=64:-melf64%{EB:b}%{EL:l}tsmip} \
62
%{mabi=32:-melf32%{EB:b}%{EL:l}tsmip}"
63
 
64
#undef LOCAL_LABEL_PREFIX
65
#define LOCAL_LABEL_PREFIX (TARGET_OLDABI ? "$" : ".")
66
 
67
/* GNU/Linux doesn't use the same floating-point format that IRIX uses
68
   for long double.  There's no need to override this here, since
69
   ieee_quad_format is the default, but let's put this here to make
70
   sure nobody thinks we just forgot to set it to something else.  */
71
#define MIPS_TFMODE_FORMAT mips_quad_format

powered by: WebSVN 2.1.0

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