OSDN Git Service

Add -mcpu={505,821,860} support; Fixup common mode support; Make eabi not rely on GLD
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / eabisim.h
1 /* Support for GCC on simulated PowerPC systems targeted to embedded ELF
2    systems.
3    Copyright (C) 1995, 1996 Free Software Foundation, Inc.
4    Contributed by Cygnus Support.
5
6 This file is part of GNU CC.
7
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)
11 any later version.
12
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.
17
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.  */
22
23 #include "rs6000/eabi.h"
24
25 #undef TARGET_VERSION
26 #define TARGET_VERSION fprintf (stderr, " (PowerPC Simulated)");
27
28 #undef CPP_PREDEFINES
29 #define CPP_PREDEFINES \
30   "-DPPC -D__embedded__ -D__simulator__ -Asystem(embedded) -Asystem(simulator) -Acpu(powerpc) -Amachine(powerpc)"
31
32 /* Use the simulator crt0 or mvme and libgloss/newlib libraries if desired */
33 #undef  STARTFILE_SPEC
34 #define STARTFILE_SPEC "crti.o \
35 %{mmvme: mvme-crt0.o%s} \
36 %{!mmvme: sim-crt0.o%s}"
37
38 #undef  LIB_SPEC
39 #define LIB_SPEC "\
40 %{mmvme: -lmvme -lc -lmvme} \
41 %{!mmvme: -lsim -lc -lsim}"
42
43 #undef  LIBGCC_SPEC
44 #define LIBGCC_SPEC "libgcc.a%s"
45
46 #undef  ENDFILE_SPEC
47 #define ENDFILE_SPEC "crtn.o"