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
7This file is part of GCC.
8
9GCC is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 2, or (at your option)
12any later version.
13
14GCC is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with GCC; see the file COPYING.  If not, write to
21the Free Software Foundation, 51 Franklin Street, Fifth Floor,
22Boston, 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
53void nwld_named_section_asm_out_constructor (rtx, int);
54void 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
64