This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / config / mips / iris6gas.h
blob01634faa41472c0c962c3f094652c2dd9f3154db
1 /* Definitions for MIPS running IRIX 6 using GNU AS
2 Copyright (C) 2003, 2004
3 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* Definitions of target machine for GNU compiler. IRIX 6 with GNU as. */
24 /* Override iris6.h version to always use -init/-fini.
26 FIXME: integrate those use separate spec/define for this? */
27 #undef LINK_SPEC
28 #define LINK_SPEC "\
29 %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} \
30 %{bestGnum} %{shared} %{non_shared} \
31 %{call_shared} %{no_archive} %{exact_version} %{w} \
32 %{!shared: %{!non_shared: %{!call_shared:%{!r: -call_shared -no_unresolved}}}} \
33 %{rpath} -init __do_global_ctors -fini __do_global_dtors \
34 %{shared:-hidden_symbol __do_global_ctors,__do_global_ctors_1,__do_global_dtors} \
35 -_SYSTYPE_SVR4 -woff 131 \
36 %{mabi=32: -32}%{mabi=n32: -n32}%{mabi=64: -64}%{!mabi*: -n32}"
38 /* Disable SHF_MERGE support. Even if gas supports it, the IRIX 6 O32 ld
39 does not without a special elspec(5) file.
41 FIXME: Only do this if not using GNU ld. */
42 #if HAVE_GAS_SHF_MERGE
43 #undef HAVE_GAS_SHF_MERGE
44 #define HAVE_GAS_SHF_MERGE (mips_abi != ABI_32)
45 #endif /* HAVE_GAS_SHF_MERGE */
47 /* There's no need to perform collecting with GNU as. */
48 #undef COLLECT_PARSE_FLAG