This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / config / mips / iris5gld.h
blob2e93c11b58b4cbe641b928ab1998f0db5ca39be9
1 /* Definitions of target machine for GNU compiler. IRIX 5 with GNU ld.
2 Copyright (C) 2004 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 #undef LINK_SPEC
22 #define LINK_SPEC "\
23 %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \
24 %{bestGnum} %{shared} %{non_shared} \
25 %{call_shared} %{no_archive} %{exact_version} \
26 %{static: -non_shared} \
27 %{!static: \
28 %{!shared: %{!non_shared: %{!call_shared: -call_shared}}}} \
29 %{rpath} -init __gcc_init -fini __gcc_fini \
30 -melf32bsmip"
32 #undef STARTFILE_SPEC
33 #define STARTFILE_SPEC "%(irix_startfile_spec) irix-crti.o%s crtbegin.o%s"
35 #undef ENDFILE_SPEC
36 #define ENDFILE_SPEC "crtend.o%s irix-crtn.o%s %(irix_endfile_spec)"
38 /* The GNU linker supports one-only sections. */
39 #define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
41 #define INIT_SECTION_ASM_OP "\t.section\t.init,0x1,0x6,4,4"
42 #define FINI_SECTION_ASM_OP "\t.section\t.fini,0x1,0x6,4,4"