OSDN Git Service

2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / config / sparc / sol2-gld-bi.h
1 /* Definitions of target machine for GCC, for bi-arch SPARC
2    running Solaris 2 using the GNU linker.
3
4 Copyright (C) 2002, 2003 Free Software Foundation, Inc.
5
6 This file is part of GCC.
7
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
11 version.
12
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16 for more details.
17
18 Under Section 7 of GPL version 3, you are granted additional
19 permissions described in the GCC Runtime Library Exception, version
20 3.1, as published by the Free Software Foundation.
21
22 You should have received a copy of the GNU General Public License and
23 a copy of the GCC Runtime Library Exception along with this program;
24 see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
25 <http://www.gnu.org/licenses/>.  */
26
27 #undef LINK_ARCH32_SPEC
28 #define LINK_ARCH32_SPEC \
29   LINK_ARCH32_SPEC_BASE "%{!static: -rpath-link %R/usr/lib}"
30
31 #undef LINK_ARCH64_SPEC
32 #define LINK_ARCH64_SPEC \
33   LINK_ARCH64_SPEC_BASE "%{!static: -rpath-link %R/usr/lib/sparcv9}"
34
35 #undef LINK_ARCH_SPEC
36 #if DISABLE_MULTILIB
37 #if DEFAULT_ARCH32_P
38 #define LINK_ARCH_SPEC "\
39 %{m32:-m elf32_sparc %(link_arch32)} \
40 %{m64:%edoes not support multilib} \
41 %{!m32:%{!m64:%(link_arch_default)}} \
42 "
43 #else
44 #define LINK_ARCH_SPEC "\
45 %{m32:%edoes not support multilib} \
46 %{m64:-m elf64_sparc %(link_arch64)} \
47 %{!m32:%{!m64:%(link_arch_default)}} \
48 "
49 #endif
50 #else
51 #define LINK_ARCH_SPEC "\
52 %{m32:-m elf32_sparc %(link_arch32)} \
53 %{m64:-m elf64_sparc %(link_arch64)} \
54 %{!m32:%{!m64:%(link_arch_default)}} \
55 "
56 #endif
57