OSDN Git Service

Update Copyright years for files modified in 2010.
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / nwld.h
1 /* nwld.h -- defines to be used when targeting GCC for some generic NetWare
2    system while using the Novell linker.
3    Copyright (C) 2004, 2007, 2010 Free Software Foundation, Inc.
4
5    Written by Jan Beulich (jbeulich@novell.com)
6
7 This file is part of GCC.
8
9 GCC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3, or (at your option)
12 any later version.
13
14 GCC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING3.  If not see
21 <http://www.gnu.org/licenses/>.  */
22
23 #undef  LIB_SPEC
24 #define LIB_SPEC "-lc --def-file libc.def%s"
25
26 #undef  LIBGCC_SPEC
27 #define LIBGCC_SPEC "-lgcc %{!static-libgcc:--def-file libgcc.def%s}"
28
29 #undef  LINKER_NAME
30 #define LINKER_NAME "nwld"
31
32 #undef  LINK_SPEC
33 #define LINK_SPEC "--format:NLM --extensions:GNU" \
34         " %{static:%{!nostdlib:%{!nodefaultlib:%estatic linking is not supported\n}}}"
35
36 #undef  LINK_GCC_C_SEQUENCE_SPEC
37 #define LINK_GCC_C_SEQUENCE_SPEC "%L %G"
38
39 /* In order to permit the linker to derive the output filename from the first
40    input file, put the common startup code as the last object. */
41 #undef  STARTFILE_SPEC
42 #define STARTFILE_SPEC ""
43
44 #undef  ENDFILE_SPEC
45 #define ENDFILE_SPEC "crt0%O%s ../imports/%{!posix:libc}%{posix:posix}pre.gcc%O%s" \
46         " --def-file %{!posix:libc}%{posix:posix}pre.def%s"
47
48 #define DRIVER_SELF_SPECS "%{!static-libgcc:-shared-libgcc}"
49
50 #define TARGET_SUB_SECTION_SEPARATOR "$"
51
52 void nwld_named_section_asm_out_constructor (rtx, int);
53 void nwld_named_section_asm_out_destructor (rtx, int);
54
55 #define TARGET_ASM_CONSTRUCTOR nwld_named_section_asm_out_constructor
56 #define TARGET_ASM_DESTRUCTOR  nwld_named_section_asm_out_destructor
57
58 #define SUBSUBTARGET_OVERRIDE_OPTIONS                                   \
59 do {                                                                    \
60   /* XXX This can be enabled once gas output meets nwld's needs. */     \
61   /* if (!flag_unwind_tables && !flag_exceptions) */                    \
62     flag_dwarf2_cfi_asm = 0;                                            \
63 } while (0)
64
65 #undef  EH_FRAME_SECTION_NAME
66 #define EH_FRAME_SECTION_NAME ".eh_frame"TARGET_SUB_SECTION_SEPARATOR
67
68 /* nwld does not currently support stabs debug info */
69 #undef DBX_DEBUGGING_INFO