1 /* Definitions for Linux with ELF format
2 Copyright (C) 1995 Free Software Foundation, Inc.
3 Contributed by Eric Youngdale.
4 Modified for stabs-in-ELF by H.J. Lu.
6 This file is part of GNU CC.
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING. If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
23 /* Don't assume anything about the header files. */
24 #define NO_IMPLICIT_EXTERN_C
29 /* Linux uses ctype from glibc.a. I am not sure how complete it is.
30 For now, we play safe. It may change later. */
33 #undef MULTIBYTE_CHARS
34 #define MULTIBYTE_CHARS 1
37 /* There are conflicting reports about whether this system uses
38 a different assembler syntax. wilson@cygnus.com says # is right. */
40 #define COMMENT_BEGIN "#"
43 #define ASM_APP_ON "#APP\n"
46 #define ASM_APP_OFF "#NO_APP\n"
48 /* Use stabs instead of DWARF debug format. */
49 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
53 #undef MD_STARTFILE_PREFIX
55 /* Output at beginning of assembler file. */
56 /* The .file command should always begin the output. */
58 #define ASM_FILE_START(FILE) \
60 output_file_directive (FILE, main_input_filename); \
61 fprintf (FILE, "\t.version\t\"01.01\"\n"); \
69 /* Provide a STARTFILE_SPEC appropriate for Linux. Here we add
70 the Linux magical crtbegin.o file (see crtstuff.c) which
71 provides part of the support for getting C++ file-scope static
72 object constructed before entering `main'. */
75 #define STARTFILE_SPEC \
77 %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\
78 crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
80 /* Provide a ENDFILE_SPEC appropriate for Linux. Here we tack on
81 the Linux magical crtend.o file (see crtstuff.c) which
82 provides part of the support for getting C++ file-scope static
83 object constructed before entering `main', followed by a normal
84 Linux "finalizer" file, `crtn.o'. */
87 #define ENDFILE_SPEC \
88 "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"