* rs6000/linux.h (CPP_PREDEFINES): Add -D__ELF__.
[platform/upstream/gcc.git] / gcc / config / rs6000 / linux.h
1 /* Definitions of target machine for GNU compiler,
2    for IBM RS/6000 running AIX version 3.1.
3    Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
4    Contributed by Michael Meissner (meissner@cygnus.com).
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, 675 Mass Ave, Cambridge, MA 02139, USA.  */
21
22 #include "rs6000/sysv4.h"
23
24 #undef CPP_PREDEFINES
25 #define CPP_PREDEFINES \
26  "-DPPC -D__ELF__ -Dunix -Dlinux -Dpowerpc -Asystem(unix) -Asystem(linux) -Acpu(powerpc) -Amachine(powerpc)"
27
28 #undef LINK_SPEC
29 #define LINK_SPEC "-m elf32ppc %{shared:-shared} \
30   %{!shared: \
31     %{!static: \
32       %{rdynamic:-export-dynamic} \
33       %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
34     %{static:-static}}"
35
36 #undef  LIB_DEFAULT_SPEC
37 #define LIB_DEFAULT_SPEC "%(lib_linux)"
38
39 #undef  STARTFILE_DEFAULT_SPEC
40 #define STARTFILE_DEFAULT_SPEC "%(startfile_linux)"
41
42 #undef  ENDFILE_DEFAULT_SPEC
43 #define ENDFILE_DEFAULT_SPEC "%(endfile_linux)"
44
45 #undef  LINK_START_DEFAULT_SPEC
46 #define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
47
48 #undef  LINK_OS_DEFAULT_SPEC
49 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
50
51 #undef TARGET_VERSION
52 #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
53
54 /* Define this macro as a C expression for the initializer of an
55    array of string to tell the driver program which options are
56    defaults for this target and thus do not need to be handled
57    specially when using `MULTILIB_OPTIONS'.
58
59    Do not define this macro if `MULTILIB_OPTIONS' is not defined in
60    the target makefile fragment or if none of the options listed in
61    `MULTILIB_OPTIONS' are set by default.  *Note Target Fragment::.  */
62
63 #undef  MULTILIB_DEFAULTS
64 #define MULTILIB_DEFAULTS { "mbig", "mcall-linux" }
65
66 #undef DEFAULT_VTABLE_THUNKS
67 #define DEFAULT_VTABLE_THUNKS 1