freebsd64.h revision 98599
1195609Smp/* Definitions for AMD x86-64 running FreeBSD with ELF format
259243Sobrien   Copyright (C) 2002 Free Software Foundation, Inc.
359243Sobrien   Contributed by David O'Brien <obrien@FreeBSD.org>
459243Sobrien
559243SobrienThis file is part of GNU CC.
659243Sobrien
759243SobrienGNU CC is free software; you can redistribute it and/or modify
859243Sobrienit under the terms of the GNU General Public License as published by
959243Sobrienthe Free Software Foundation; either version 2, or (at your option)
1059243Sobrienany later version.
1159243Sobrien
1259243SobrienGNU CC is distributed in the hope that it will be useful,
1359243Sobrienbut WITHOUT ANY WARRANTY; without even the implied warranty of
1459243SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1559243SobrienGNU General Public License for more details.
1659243Sobrien
17100616SmpYou should have received a copy of the GNU General Public License
1859243Sobrienalong with GNU CC; see the file COPYING.  If not, write to
1959243Sobrienthe Free Software Foundation, 59 Temple Place - Suite 330,
2059243SobrienBoston, MA 02111-1307, USA.  */
2159243Sobrien
2259243Sobrien/* $FreeBSD: head/contrib/gcc/config/i386/freebsd64.h 98599 2002-06-21 22:54:24Z obrien $ */
2359243Sobrien
2459243Sobrien
2559243Sobrien#undef TARGET_VERSION
2659243Sobrien#define TARGET_VERSION fprintf (stderr, " (FreeBSD/x86-64 ELF)");
2759243Sobrien
2859243Sobrien/* Provide a LINK_SPEC appropriate for the FreeBSD/x86-64 ELF target.
2959243Sobrien   This is a copy of LINK_SPEC from <i386/freebsd.h> tweaked for
3059243Sobrien   the x86-64 target.  */
3159243Sobrien
3259243Sobrien#undef  CC1_SPEC
3359243Sobrien#define CC1_SPEC "%(cc1_cpu) %{profile:-p} \
34145479Smp  %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
3559243Sobrien  %{maout: %{!mno-underscores: %{!munderscores: -munderscores }}}"
36195609Smp
3759243Sobrien#undef  ASM_SPEC
3859243Sobrien#define ASM_SPEC	"%{v*: -v} %{maout: %{fpic:-k} %{fPIC:-k}} \
3959243Sobrien			%{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} \
4059243Sobrien			%{Wa,*:%*} %{m32:--32}"
4159243Sobrien
42167465Smp#undef	LINK_SPEC
43167465Smp#define LINK_SPEC "\
44167465Smp  %{!m32:-m elf_x86_64} \
45195609Smp  %{m32:-m elf_i386} \
46167465Smp  %{Wl,*:%*} \
47167465Smp  %{v:-V} \
48167465Smp  %{assert*} %{R*} %{rpath*} %{defsym*} \
49167465Smp  %{shared:-Bshareable %{h*} %{soname*}} \
50167465Smp    %{!shared: \
51167465Smp      %{!static: \
52167465Smp        %{rdynamic:-export-dynamic} \
53167465Smp	%{!dynamic-linker:-dynamic-linker /usr/libexec/ld-elf.so.1}} \
5459243Sobrien    %{static:-Bstatic}} \
5559243Sobrien  %{symbolic:-Bsymbolic}"
5659243Sobrien