linux64.h revision 90075
1/* Definitions for AMD x86-64 running Linux-based GNU systems with ELF format.
2   Copyright (C) 2001 Free Software Foundation, Inc.
3   Contributed by Jan Hubicka <jh@suse.cz>, based on linux.h.
4
5This file is part of GNU CC.
6
7GNU CC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GNU CC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU CC; see the file COPYING.  If not, write to
19the Free Software Foundation, 59 Temple Place - Suite 330,
20Boston, MA 02111-1307, USA.  */
21
22#define LINUX_DEFAULT_ELF
23
24#undef TARGET_VERSION
25#define TARGET_VERSION fprintf (stderr, " (x86-64 Linux/ELF)");
26
27#undef CPP_PREDEFINES
28#define CPP_PREDEFINES "-D__ELF__ -Dunix -Dlinux -Asystem(posix)"
29
30#undef CPP_SPEC
31#define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} %{!m32:-D__LONG_MAX__=9223372036854775807L}"
32
33/* Provide a LINK_SPEC.  Here we provide support for the special GCC
34   options -static and -shared, which allow us to link things in one
35   of these three modes by applying the appropriate combinations of
36   options at link-time.
37
38   When the -shared link option is used a final link is not being
39   done.  */
40
41#undef	LINK_SPEC
42#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} %{shared:-shared} \
43  %{!shared: \
44    %{!static: \
45      %{rdynamic:-export-dynamic} \
46      %{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}} \
47      %{static:-static}}"
48
49