]>
Commit | Line | Data |
---|---|---|
05476613 MM |
1 | /* Definitions of target machine for GNU compiler. Iris version 6 with |
2 | GNU ld. | |
3e35cb0c | 3 | Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation, Inc. |
05476613 MM |
4 | Written by Mark Mitchell <mark@codesourcery.com>. |
5 | ||
7ec022b2 | 6 | This file is part of GCC. |
05476613 | 7 | |
7ec022b2 | 8 | GCC is free software; you can redistribute it and/or modify |
05476613 MM |
9 | it under the terms of the GNU General Public License as published by |
10 | the Free Software Foundation; either version 2, or (at your option) | |
11 | any later version. | |
12 | ||
7ec022b2 | 13 | GCC is distributed in the hope that it will be useful, |
05476613 MM |
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 | |
7ec022b2 | 19 | along with GCC; see the file COPYING. If not, write to |
05476613 MM |
20 | the Free Software Foundation, 59 Temple Place - Suite 330, |
21 | Boston, MA 02111-1307, USA. */ | |
22 | ||
23 | #undef LIB_SPEC | |
24 | #define LIB_SPEC \ | |
25 | "%{mabi=n32: %{mips4:-L/usr/lib32/mips4} %{!mips4:-L/usr/lib32/mips3} \ | |
26 | -L/usr/lib32} \ | |
27 | %{mabi=64: %{mips4:-L/usr/lib64/mips4} %{!mips4:-L/usr/lib64/mips3} \ | |
28 | -L/usr/lib64} \ | |
29 | %{!mabi*: %{mips4:-L/usr/lib32/mips4} %{!mips4:-L/usr/lib32/mips3} \ | |
30 | -L/usr/lib32} \ | |
31 | %{!shared: \ | |
32 | %{p:libprof1.a%s}%{pg:libprof1.a%s} -lc}" | |
33 | ||
34 | /* Use the default libgcc spec. */ | |
35 | #undef LIBGCC_SPEC | |
36 | ||
37 | /* ??? If no mabi=X option give, but a mipsX option is, then should depend | |
38 | on the mipsX option. */ | |
39 | #undef LINK_SPEC | |
40 | #define LINK_SPEC "\ | |
41 | %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} \ | |
42 | %{bestGnum} %{shared} %{non_shared} \ | |
43 | %{call_shared} %{no_archive} %{exact_version} \ | |
44 | %{static: -non_shared} \ | |
45 | %{!static: \ | |
46 | %{!shared: %{!non_shared: %{!call_shared: -call_shared}}}} \ | |
21b807f1 | 47 | %{rpath} -init __gcc_init -fini __gcc_fini \ |
1a75bc33 | 48 | %{mabi=32: -melf32bsmip}%{mabi=n32: -melf32bmipn32}%{mabi=64: -melf64bmip}%{!mabi*: -melf32bmipn32}" |
2d6b61cb | 49 | |
21b807f1 | 50 | #undef STARTFILE_SPEC |
3e35cb0c | 51 | #define STARTFILE_SPEC "%(irix_startfile_spec) irix-crti.o%s crtbegin.o%s" |
21b807f1 RS |
52 | |
53 | #undef ENDFILE_SPEC | |
3e35cb0c | 54 | #define ENDFILE_SPEC "crtend.o%s irix-crtn.o%s %(irix_endfile_spec)" |
21b807f1 | 55 | |
2d6b61cb MM |
56 | /* The GNU linker supports one-only sections. */ |
57 | #define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1) | |
21b807f1 RS |
58 | |
59 | #define INIT_SECTION_ASM_OP "\t.section\t.init,0x1,0x6,4,4" | |
60 | #define FINI_SECTION_ASM_OP "\t.section\t.fini,0x1,0x6,4,4" |