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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [config/] [i386/] [linux64.h] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Definitions for AMD x86-64 running Linux-based GNU systems with ELF format.
2
   Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
3
   Contributed by Jan Hubicka <jh@suse.cz>, based on linux.h.
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 2, 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 COPYING.  If not, write to
19
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20
Boston, MA 02110-1301, USA.  */
21
 
22
#define TARGET_VERSION fprintf (stderr, " (x86-64 Linux/ELF)");
23
 
24
#define TARGET_OS_CPP_BUILTINS()                                \
25
  do                                                            \
26
    {                                                           \
27
        LINUX_TARGET_OS_CPP_BUILTINS();                         \
28
        if (flag_pic)                                           \
29
          {                                                     \
30
            builtin_define ("__PIC__");                         \
31
            builtin_define ("__pic__");                         \
32
          }                                                     \
33
    }                                                           \
34
  while (0)
35
 
36
#undef CPP_SPEC
37
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
38
 
39
/* The svr4 ABI for the i386 says that records and unions are returned
40
   in memory.  In the 64bit compilation we will turn this flag off in
41
   override_options, as we never do pcc_struct_return scheme on this target.  */
42
#undef DEFAULT_PCC_STRUCT_RETURN
43
#define DEFAULT_PCC_STRUCT_RETURN 1
44
 
45
/* We arrange for the whole %fs segment to map the tls area.  */
46
#undef TARGET_TLS_DIRECT_SEG_REFS_DEFAULT
47
#define TARGET_TLS_DIRECT_SEG_REFS_DEFAULT MASK_TLS_DIRECT_SEG_REFS
48
 
49
/* Provide a LINK_SPEC.  Here we provide support for the special GCC
50
   options -static and -shared, which allow us to link things in one
51
   of these three modes by applying the appropriate combinations of
52
   options at link-time.
53
 
54
   When the -shared link option is used a final link is not being
55
   done.  */
56
 
57
#undef  LINK_SPEC
58
#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
59
  %{shared:-shared} \
60
  %{!shared: \
61
    %{!static: \
62
      %{rdynamic:-export-dynamic} \
63
      %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
64
      %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
65
    %{static:-static}}"
66
 
67
/* Similar to standard Linux, but adding -ffast-math support.  */
68
#undef  ENDFILE_SPEC
69
#define ENDFILE_SPEC \
70
  "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} \
71
   %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
72
 
73
#define MULTILIB_DEFAULTS { "m64" }
74
 
75
#undef NEED_INDICATE_EXEC_STACK
76
#define NEED_INDICATE_EXEC_STACK 1
77
 
78
#define MD_UNWIND_SUPPORT "config/i386/linux-unwind.h"
79
 
80
/* This macro may be overridden in i386/k*bsd-gnu.h.  */
81
#define REG_NAME(reg) reg
82
 
83
#ifdef TARGET_LIBC_PROVIDES_SSP
84
/* i386 glibc provides __stack_chk_guard in %gs:0x14,
85
   x86_64 glibc provides it in %fs:0x28.  */
86
#define TARGET_THREAD_SSP_OFFSET        (TARGET_64BIT ? 0x28 : 0x14)
87
#endif

powered by: WebSVN 2.1.0

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