linux64.h revision 90075
1193323Sed/* Definitions for AMD x86-64 running Linux-based GNU systems with ELF format. 2193323Sed Copyright (C) 2001 Free Software Foundation, Inc. 3193323Sed Contributed by Jan Hubicka <jh@suse.cz>, based on linux.h. 4193323Sed 5193323SedThis file is part of GNU CC. 6193323Sed 7193323SedGNU CC is free software; you can redistribute it and/or modify 8193323Sedit under the terms of the GNU General Public License as published by 9193323Sedthe Free Software Foundation; either version 2, or (at your option) 10193323Sedany later version. 11193323Sed 12193323SedGNU CC is distributed in the hope that it will be useful, 13193323Sedbut WITHOUT ANY WARRANTY; without even the implied warranty of 14193323SedMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15193323SedGNU General Public License for more details. 16193323Sed 17193323SedYou should have received a copy of the GNU General Public License 18193323Sedalong with GNU CC; see the file COPYING. If not, write to 19193323Sedthe Free Software Foundation, 59 Temple Place - Suite 330, 20201360SrdivackyBoston, MA 02111-1307, USA. */ 21193323Sed 22195340Sed#define LINUX_DEFAULT_ELF 23200581Srdivacky 24200581Srdivacky#undef TARGET_VERSION 25193323Sed#define TARGET_VERSION fprintf (stderr, " (x86-64 Linux/ELF)"); 26218893Sdim 27210299Sed#undef CPP_PREDEFINES 28198892Srdivacky#define CPP_PREDEFINES "-D__ELF__ -Dunix -Dlinux -Asystem(posix)" 29193323Sed 30200581Srdivacky#undef CPP_SPEC 31218893Sdim#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}" 32218893Sdim 33218893Sdim/* Provide a LINK_SPEC. Here we provide support for the special GCC 34218893Sdim options -static and -shared, which allow us to link things in one 35218893Sdim of these three modes by applying the appropriate combinations of 36218893Sdim options at link-time. 37218893Sdim 38218893Sdim When the -shared link option is used a final link is not being 39218893Sdim done. */ 40218893Sdim 41193323Sed#undef LINK_SPEC 42193323Sed#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} %{shared:-shared} \ 43200581Srdivacky %{!shared: \ 44193323Sed %{!static: \ 45193323Sed %{rdynamic:-export-dynamic} \ 46193323Sed %{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}} \ 47193323Sed %{static:-static}}" 48193323Sed 49193323Sed