1169689Skan/* nwld.h -- defines to be used when targeting GCC for some generic NetWare 2169689Skan system while using the Novell linker. 3169689Skan Copyright (C) 2004 Free Software Foundation, Inc. 4169689Skan 5169689Skan Written by Jan Beulich (jbeulich@novell.com) 6169689Skan 7169689SkanThis file is part of GCC. 8169689Skan 9169689SkanGCC is free software; you can redistribute it and/or modify 10169689Skanit under the terms of the GNU General Public License as published by 11169689Skanthe Free Software Foundation; either version 2, or (at your option) 12169689Skanany later version. 13169689Skan 14169689SkanGCC is distributed in the hope that it will be useful, 15169689Skanbut WITHOUT ANY WARRANTY; without even the implied warranty of 16169689SkanMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17169689SkanGNU General Public License for more details. 18169689Skan 19169689SkanYou should have received a copy of the GNU General Public License 20169689Skanalong with GCC; see the file COPYING. If not, write to 21169689Skanthe Free Software Foundation, 51 Franklin Street, Fifth Floor, 22169689SkanBoston, MA 02110-1301, USA. */ 23169689Skan 24169689Skan#undef LIB_SPEC 25169689Skan#define LIB_SPEC "-lc --def-file libc.def%s" 26169689Skan 27169689Skan#undef LIBGCC_SPEC 28169689Skan#define LIBGCC_SPEC "-lgcc %{!static-libgcc:--def-file libgcc.def%s}" 29169689Skan 30169689Skan#undef LINKER_NAME 31169689Skan#define LINKER_NAME "nwld" 32169689Skan 33169689Skan#undef LINK_SPEC 34169689Skan#define LINK_SPEC "--format:NLM --extensions:GNU" \ 35169689Skan " %{static:%{!nostdlib:%{!nodefaultlib:%eStatic linking is not supported.\n}}}" 36169689Skan 37169689Skan#undef LINK_GCC_C_SEQUENCE_SPEC 38169689Skan#define LINK_GCC_C_SEQUENCE_SPEC "%L %G" 39169689Skan 40169689Skan/* In order to permit the linker to derive the output filename from the first 41169689Skan input file, put the common startup code as the last object. */ 42169689Skan#undef STARTFILE_SPEC 43169689Skan#define STARTFILE_SPEC "" 44169689Skan 45169689Skan#undef ENDFILE_SPEC 46169689Skan#define ENDFILE_SPEC "crt0%O%s ../imports/%{!posix:libc}%{posix:posix}pre.gcc%O%s" \ 47169689Skan " --def-file %{!posix:libc}%{posix:posix}pre.def%s" 48169689Skan 49169689Skan#define DRIVER_SELF_SPECS "%{!static-libgcc:-shared-libgcc}" 50169689Skan 51169689Skan#define TARGET_SUB_SECTION_SEPARATOR "$" 52169689Skan 53169689Skanvoid nwld_named_section_asm_out_constructor (rtx, int); 54169689Skanvoid nwld_named_section_asm_out_destructor (rtx, int); 55169689Skan 56169689Skan#define TARGET_ASM_CONSTRUCTOR nwld_named_section_asm_out_constructor 57169689Skan#define TARGET_ASM_DESTRUCTOR nwld_named_section_asm_out_destructor 58169689Skan 59169689Skan#undef EH_FRAME_SECTION_NAME 60169689Skan#define EH_FRAME_SECTION_NAME ".eh_frame"TARGET_SUB_SECTION_SEPARATOR 61169689Skan 62169689Skan/* nwld does not currently support stabs debug info */ 63169689Skan#undef DBX_DEBUGGING_INFO 64