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