[official-gcc.git] / gcc / config / m68k / m68020-elf.h
blob94b5d44064c71abb9a2f462abd18b19313021463
1 /* Definitions of target machine for GNU compiler. "naked" 68020,
2 elf object files and debugging, version.
3 Copyright (C) 1987, 1988, 1992, 1995, 1996 Free Software Foundation, Inc.
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* This comment is here to see if it will keep Sun's cpp from dying. */
24 #include "m68k/m68k-none.h"
25 #include "m68k/m68kelf.h"
26 #include "elfos.h"
27 /* m68k/m68kemb.h sets some macros in ways that override the svr4 abi. */
28 #include "m68k/m68kemb.h"
30 /* We need to override the default specs from elfos.h. This suppresses the
31 loading of crt0.o by gcc's default linker spec. For embedded targets crt0
32 now comes from the linker script. */
34 #undef STARTFILE_SPEC
35 #define STARTFILE_SPEC "crtbegin.o%s"
37 #undef ENDFILE_SPEC
38 #define ENDFILE_SPEC "crtend.o%s"
40 #define LIB_SPEC "-lc"
42 /* ??? Quick hack to get constructors working. Make this look more like a
43 COFF target, so the existing dejagnu/libgloss support works. A better
44 solution would be to make the necessary dejagnu and libgloss changes so
45 that we can use normal the ELF constructor mechanism. */
46 #undef INIT_SECTION_ASM_OP
47 #undef FINI_SECTION_ASM_OP
48 #undef STARTFILE_SPEC
49 #define STARTFILE_SPEC ""
50 #undef ENDFILE_SPEC
51 #define ENDFILE_SPEC ""
53 /* end of m68020-elf.h */