freebsd64.h revision 98599
190075Sobrien/* Definitions for AMD x86-64 running FreeBSD with ELF format 290075Sobrien Copyright (C) 2002 Free Software Foundation, Inc. 390075Sobrien Contributed by David O'Brien <obrien@FreeBSD.org> 490075Sobrien 590075SobrienThis file is part of GNU CC. 690075Sobrien 790075SobrienGNU CC is free software; you can redistribute it and/or modify 890075Sobrienit under the terms of the GNU General Public License as published by 990075Sobrienthe Free Software Foundation; either version 2, or (at your option) 1090075Sobrienany later version. 1190075Sobrien 1290075SobrienGNU CC is distributed in the hope that it will be useful, 1390075Sobrienbut WITHOUT ANY WARRANTY; without even the implied warranty of 1490075SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1590075SobrienGNU General Public License for more details. 1690075Sobrien 1790075SobrienYou should have received a copy of the GNU General Public License 1890075Sobrienalong with GNU CC; see the file COPYING. If not, write to 1990075Sobrienthe Free Software Foundation, 59 Temple Place - Suite 330, 2090075SobrienBoston, MA 02111-1307, USA. */ 2190075Sobrien 2298599Sobrien/* $FreeBSD: head/contrib/gcc/config/i386/freebsd64.h 98599 2002-06-21 22:54:24Z obrien $ */ 2390075Sobrien 2498599Sobrien 2590075Sobrien#undef TARGET_VERSION 2690075Sobrien#define TARGET_VERSION fprintf (stderr, " (FreeBSD/x86-64 ELF)"); 2790075Sobrien 2890075Sobrien/* Provide a LINK_SPEC appropriate for the FreeBSD/x86-64 ELF target. 2990075Sobrien This is a copy of LINK_SPEC from <i386/freebsd.h> tweaked for 3090075Sobrien the x86-64 target. */ 3190075Sobrien 3298599Sobrien#undef CC1_SPEC 3398599Sobrien#define CC1_SPEC "%(cc1_cpu) %{profile:-p} \ 3498599Sobrien %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \ 3598599Sobrien %{maout: %{!mno-underscores: %{!munderscores: -munderscores }}}" 3698599Sobrien 3798599Sobrien#undef ASM_SPEC 3898599Sobrien#define ASM_SPEC "%{v*: -v} %{maout: %{fpic:-k} %{fPIC:-k}} \ 3998599Sobrien %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} \ 4098599Sobrien %{Wa,*:%*} %{m32:--32}" 4198599Sobrien 4290075Sobrien#undef LINK_SPEC 4390075Sobrien#define LINK_SPEC "\ 4490075Sobrien %{!m32:-m elf_x86_64} \ 4590075Sobrien %{m32:-m elf_i386} \ 4690075Sobrien %{Wl,*:%*} \ 4790075Sobrien %{v:-V} \ 4890075Sobrien %{assert*} %{R*} %{rpath*} %{defsym*} \ 4990075Sobrien %{shared:-Bshareable %{h*} %{soname*}} \ 5090075Sobrien %{!shared: \ 5190075Sobrien %{!static: \ 5290075Sobrien %{rdynamic:-export-dynamic} \ 5390075Sobrien %{!dynamic-linker:-dynamic-linker /usr/libexec/ld-elf.so.1}} \ 5490075Sobrien %{static:-Bstatic}} \ 5590075Sobrien %{symbolic:-Bsymbolic}" 56