1 /* Definitions for embedded ia64-elf target.
3 Copyright (C) 2000-2024 Free Software Foundation, Inc.
5 This file is part of GCC.
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
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
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.
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/>. */
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. */
30 #if ((TARGET_CPU_DEFAULT | TARGET_DEFAULT) & MASK_GNU_AS) != 0
33 #define ASM_EXTRA_SPEC \
34 "%{mno-gnu-as:-N so} %{!mno-gnu-as:-x}"
39 "%{!mgnu-as:-N so} %{mgnu-as:-x} %{mconstant-gp:-M const_gp}\
40 %{mauto-pic:-M no_plabel}"
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. */
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
51 #define LINK_SPEC "%{mno-gnu-ld:-dn -N so}"
54 #define LINK_SPEC "%{!mgnu-ld:-dn -N so}"
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. */
60 #define ENDFILE_SPEC "crtend.o%s crtn.o%s"
63 #define STARTFILE_SPEC "%{!shared: \
65 %{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}}}\
66 crti.o%s crtbegin.o%s"