Merge branch 'gcc441'
[dragonfly.git] / gnu / usr.bin / cc44 / cc_prep / config / i386 / dragonfly64.h
1 /* Definitions for AMD x86-64 running FreeBSD with ELF format
2    Copyright (C) 2002, 2004, 2007 Free Software Foundation, Inc.
3    Contributed by David O'Brien <obrien@FreeBSD.org>
4    Adapted from the FreeBSD version.
5
6 This file is part of GCC.
7
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
12
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3.  If not see
20 <http://www.gnu.org/licenses/>.  */
21
22
23 #undef  TARGET_VERSION
24 #define TARGET_VERSION fprintf (stderr, " (x86-64 DragonFly/ELF)");
25
26 /* Tell final.c that we don't need a label passed to mcount.  */
27
28 #undef  MCOUNT_NAME
29 #define MCOUNT_NAME ".mcount"
30
31 #define SUBTARGET_EXTRA_SPECS \
32   { "dfbsd_dynamic_linker", DFBSD_DYNAMIC_LINKER }
33
34 /* Provide a LINK_SPEC appropriate for the DragonFly/x86-64 ELF target.
35    This is a copy of LINK_SPEC from <i386/dragonfly.h> tweaked for
36    the x86-64 target.
37    XXX We don't support two arch userland yet  */
38
39 #undef  LINK_SPEC
40 #define LINK_SPEC "\
41   %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \
42   %{v:-V} \
43   %{assert*} %{R*} %{rpath*} %{defsym*} \
44   %{shared:-Bshareable %{h*} %{soname*}} \
45     %{!shared: \
46       %{!static: \
47         %{rdynamic:-export-dynamic} \
48         %{!dynamic-linker:-dynamic-linker %(dfbsd_dynamic_linker) }} \
49     %{static:-Bstatic}} \
50   %{symbolic:-Bsymbolic}" \
51   DFBSD_NATIVE_LINK_SPEC