Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / config / i386 / nwld.h
blob7585f86974e6012c5ad90f995d38bbcb61664d3f
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.
5 Written by Jan Beulich (jbeulich@novell.com)
7 This file is part of GCC.
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.
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.
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. */
24 #undef LIB_SPEC
25 #define LIB_SPEC "-lc --def-file libc.def%s"
27 #undef LIBGCC_SPEC
28 #define LIBGCC_SPEC "-lgcc %{!static-libgcc:--def-file libgcc.def%s}"
30 #undef LINKER_NAME
31 #define LINKER_NAME "nwld"
33 #undef LINK_SPEC
34 #define LINK_SPEC "--format nlm %{static:%{!nostdlib:%{!nodefaultlib:%eStatic linking is not supported.\n}}}"
36 #undef LINK_GCC_C_SEQUENCE_SPEC
37 #define LINK_GCC_C_SEQUENCE_SPEC "%L %G"
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 ""
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"
48 #define DRIVER_SELF_SPECS "%{!static-libgcc:-shared-libgcc}"
50 #define TARGET_SUB_SECTION_SEPARATOR "$"
52 void nwld_named_section_asm_out_constructor (rtx, int);
53 void nwld_named_section_asm_out_destructor (rtx, int);
55 #define TARGET_ASM_CONSTRUCTOR nwld_named_section_asm_out_constructor
56 #define TARGET_ASM_DESTRUCTOR nwld_named_section_asm_out_destructor
58 #undef EH_FRAME_SECTION_NAME
59 #define EH_FRAME_SECTION_NAME ".eh_frame"TARGET_SUB_SECTION_SEPARATOR
61 /* nwld does not currently support stabs debug info */
62 #undef DBX_DEBUGGING_INFO