OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / elf.h
1 /* Definitions of target machine for GNU compiler.  MIPS R3000 version with
2    GOFAST floating point library.
3    Copyright (C) 1994 Free Software Foundation, Inc.
4
5 This file is part of GNU CC.
6
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.
11
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.
16
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, 675 Mass Ave, Cambridge, MA 02139, USA.  */
20
21 /* Use ELF.  */
22 #define OBJECT_FORMAT_ELF
23
24 /* Until we figure out what MIPS ELF targets normally use, just do
25    stabs in ELF.  */
26 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
27
28 /* Mostly like ECOFF.  */
29 #include "mips/ecoff.h"
30
31 /* We need to use .esize and .etype instead of .size and .type to
32    avoid conflicting with ELF directives.  */
33 #undef PUT_SDB_SIZE
34 #define PUT_SDB_SIZE(a)                                 \
35 do {                                                    \
36   extern FILE *asm_out_text_file;                       \
37   fprintf (asm_out_text_file, "\t.esize\t%d;", (a));    \
38 } while (0)
39
40 #undef PUT_SDB_TYPE
41 #define PUT_SDB_TYPE(a)                                 \
42 do {                                                    \
43   extern FILE *asm_out_text_file;                       \
44   fprintf (asm_out_text_file, "\t.etype\t0x%x;", (a));  \
45 } while (0)