1 |
709 |
jeremybenn |
/* Definitions for embedded ia64-elf target.
|
2 |
|
|
|
3 |
|
|
Copyright (C) 2000, 2001, 2002, 2003, 2010, 2011 Free Software Foundation, Inc.
|
4 |
|
|
|
5 |
|
|
This file is part of GCC.
|
6 |
|
|
|
7 |
|
|
GCC is free software; you can redistribute it and/or modify it under
|
8 |
|
|
the terms of the GNU General Public License as published by the Free
|
9 |
|
|
Software Foundation; either version 3, or (at your option) any later
|
10 |
|
|
version.
|
11 |
|
|
|
12 |
|
|
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
13 |
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
14 |
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
15 |
|
|
for more details.
|
16 |
|
|
|
17 |
|
|
Under Section 7 of GPL version 3, you are granted additional
|
18 |
|
|
permissions described in the GCC Runtime Library Exception, version
|
19 |
|
|
3.1, as published by the Free Software Foundation.
|
20 |
|
|
|
21 |
|
|
You should have received a copy of the GNU General Public License and
|
22 |
|
|
a copy of the GCC Runtime Library Exception along with this program;
|
23 |
|
|
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
24 |
|
|
<http://www.gnu.org/licenses/>. */
|
25 |
|
|
|
26 |
|
|
/* A C string constant that tells the GCC driver program options to pass to
|
27 |
|
|
the assembler. It can also specify how to translate options you give to GNU
|
28 |
|
|
CC into options for GCC to pass to the assembler. */
|
29 |
|
|
|
30 |
|
|
#if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GNU_AS) != 0
|
31 |
|
|
/* GNU AS. */
|
32 |
|
|
#undef ASM_EXTRA_SPEC
|
33 |
|
|
#define ASM_EXTRA_SPEC \
|
34 |
|
|
"%{mno-gnu-as:-N so} %{!mno-gnu-as:-x}"
|
35 |
|
|
#else
|
36 |
|
|
/* Intel ias. */
|
37 |
|
|
#undef ASM_SPEC
|
38 |
|
|
#define ASM_SPEC \
|
39 |
|
|
"%{!mgnu-as:-N so} %{mgnu-as:-x} %{mconstant-gp:-M const_gp}\
|
40 |
|
|
%{mauto-pic:-M no_plabel}"
|
41 |
|
|
#endif
|
42 |
|
|
|
43 |
|
|
/* A C string constant that tells the GCC driver program options to pass to
|
44 |
|
|
the linker. It can also specify how to translate options you give to GCC
|
45 |
|
|
into options for GCC to pass to the linker. */
|
46 |
|
|
|
47 |
|
|
/* The Intel linker does not support dynamic linking, so we need -dn.
|
48 |
|
|
The Intel linker gives annoying messages unless -N so is used. */
|
49 |
|
|
#if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GNU_LD) != 0
|
50 |
|
|
/* GNU LD. */
|
51 |
|
|
#define LINK_SPEC "%{mno-gnu-ld:-dn -N so}"
|
52 |
|
|
#else
|
53 |
|
|
/* Intel ild. */
|
54 |
|
|
#define LINK_SPEC "%{!mgnu-ld:-dn -N so}"
|
55 |
|
|
#endif
|
56 |
|
|
|
57 |
|
|
/* elfos.h does not link with crti.o/crtn.o. We override elfos.h so
|
58 |
|
|
that we can use the standard ELF Unix method. */
|
59 |
|
|
#undef ENDFILE_SPEC
|
60 |
|
|
#define ENDFILE_SPEC "crtend.o%s crtn.o%s"
|
61 |
|
|
|
62 |
|
|
#undef STARTFILE_SPEC
|
63 |
|
|
#define STARTFILE_SPEC "%{!shared: \
|
64 |
|
|
%{!symbolic: \
|
65 |
|
|
%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}}\
|
66 |
|
|
crti.o%s crtbegin.o%s"
|
67 |
|
|
|
68 |
|
|
/* End of elf.h */
|