OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [config/] [sparc/] [sol2-gld-bi.h] - Blame information for rev 297

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 282 jeremybenn
/* 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
/* Since binutils 2.21, GNU ld supports new *_sol2 emulations to strictly
36
   follow the Solaris 2 ABI.  Prefer them if present.  */
37
#ifdef HAVE_LD_SOL2_EMULATION
38
#define SPARC32_EMULATION "elf32_sparc_sol2"
39
#define SPARC64_EMULATION "elf64_sparc_sol2"
40
#else
41
#define SPARC32_EMULATION "elf32_sparc"
42
#define SPARC64_EMULATION "elf64_sparc"
43
#endif
44
 
45
#undef LINK_ARCH_SPEC
46
#if DISABLE_MULTILIB
47
#if DEFAULT_ARCH32_P
48
#define LINK_ARCH_SPEC "\
49
%{m32:-m " SPARC32_EMULATION " %(link_arch32)} \
50
%{m64:%edoes not support multilib} \
51
%{!m32:%{!m64:%(link_arch_default)}} \
52
"
53
#else
54
#define LINK_ARCH_SPEC "\
55
%{m32:%edoes not support multilib} \
56
%{m64:-m " SPARC64_EMULATION " %(link_arch64)} \
57
%{!m32:%{!m64:%(link_arch_default)}} \
58
"
59
#endif
60
#else
61
#define LINK_ARCH_SPEC "\
62
%{m32:-m " SPARC32_EMULATION " %(link_arch32)} \
63
%{m64:-m " SPARC64_EMULATION " %(link_arch64)} \
64
%{!m32:%{!m64:%(link_arch_default)}} \
65
"
66
#endif
67
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.