OSDN Git Service

2006-01-26 Paolo Bonzini <bonzini@gnu.org>
[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 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 2, 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 COPYING.  If not, write to
21 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA.  */
23
24 #undef  LIB_SPEC
25 #define LIB_SPEC "-lc --def-file libc.def%s"
26
27 #undef  LIBGCC_SPEC
28 #define LIBGCC_SPEC "-lgcc %{!static-libgcc:--def-file libgcc.def%s}"
29
30 #undef  LINKER_NAME
31 #define LINKER_NAME "nwld"
32
33 #undef  LINK_SPEC
34 #define LINK_SPEC "--format:NLM --extensions:GNU" \
35         " %{static:%{!nostdlib:%{!nodefaultlib:%eStatic linking is not supported.\n}}}"
36
37 #undef  LINK_GCC_C_SEQUENCE_SPEC
38 #define LINK_GCC_C_SEQUENCE_SPEC "%L %G"
39
40 /* In order to permit the linker to derive the output filename from the first
41    input file, put the common startup code as the last object. */
42 #undef  STARTFILE_SPEC
43 #define STARTFILE_SPEC ""
44
45 #undef  ENDFILE_SPEC
46 #define ENDFILE_SPEC "crt0%O%s ../imports/%{!posix:libc}%{posix:posix}pre.gcc%O%s" \
47         " --def-file %{!posix:libc}%{posix:posix}pre.def%s"
48
49 #define DRIVER_SELF_SPECS "%{!static-libgcc:-shared-libgcc}"
50
51 #define TARGET_SUB_SECTION_SEPARATOR "$"
52
53 void nwld_named_section_asm_out_constructor (rtx, int);
54 void nwld_named_section_asm_out_destructor (rtx, int);
55
56 #define TARGET_ASM_CONSTRUCTOR nwld_named_section_asm_out_constructor
57 #define TARGET_ASM_DESTRUCTOR  nwld_named_section_asm_out_destructor
58
59 #undef  EH_FRAME_SECTION_NAME
60 #define EH_FRAME_SECTION_NAME ".eh_frame"TARGET_SUB_SECTION_SEPARATOR
61
62 /* nwld does not currently support stabs debug info */
63 #undef DBX_DEBUGGING_INFO