1/* Definitions for MIPS running Linux-based GNU systems with ELF format 2 using n32/64 abi. 3 Copyright 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4 5This file is part of GCC. 6 7GCC is free software; you can redistribute it and/or modify 8it under the terms of the GNU General Public License as published by 9the Free Software Foundation; either version 2, or (at your option) 10any later version. 11 12GCC is distributed in the hope that it will be useful, 13but WITHOUT ANY WARRANTY; without even the implied warranty of 14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15GNU General Public License for more details. 16 17You should have received a copy of the GNU General Public License 18along with GCC; see the file COPYING. If not, write to 19the Free Software Foundation, 51 Franklin Street, Fifth Floor, 20Boston, MA 02110-1301, USA. */ 21 22/* Force the default endianness and ABI flags onto the command line 23 in order to make the other specs easier to write. */ 24#define DRIVER_SELF_SPECS \ 25"%{!EB:%{!EL:%(endian_spec)}}", \ 26"%{!mabi=*: -mabi=n32}" 27 28#undef SUBTARGET_ASM_SPEC 29#define SUBTARGET_ASM_SPEC "\ 30%{!fno-PIC:%{!fno-pic:-KPIC}} \ 31%{fno-PIC:-non_shared} %{fno-pic:-non_shared}" 32 33#undef LIB_SPEC 34#define LIB_SPEC "\ 35%{shared: -lc} \ 36%{!shared: %{pthread:-lpthread} \ 37 %{profile:-lc_p} %{!profile: -lc}}" 38 39#undef LINK_SPEC 40#define LINK_SPEC "\ 41%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} \ 42%{bestGnum} %{shared} %{non_shared} \ 43%{call_shared} %{no_archive} %{exact_version} \ 44 %(endian_spec) \ 45 %{!shared: \ 46 %{!ibcs: \ 47 %{!static: \ 48 %{rdynamic:-export-dynamic} \ 49 %{!dynamic-linker: \ 50 %{mabi=n32: -dynamic-linker /lib32/ld.so.1} \ 51 %{mabi=64: -dynamic-linker /lib64/ld.so.1} \ 52 %{mabi=32: -dynamic-linker /lib/ld.so.1}}} \ 53 %{static:-static}}} \ 54%{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \ 55%{mabi=64:-melf64%{EB:b}%{EL:l}tsmip} \ 56%{mabi=32:-melf32%{EB:b}%{EL:l}tsmip}" 57 58#undef LOCAL_LABEL_PREFIX 59#define LOCAL_LABEL_PREFIX (TARGET_OLDABI ? "$" : ".") 60 61/* The size in bytes of a DWARF field indicating an offset or length 62 relative to a debug info section, specified to be 4 bytes in the DWARF-2 63 specification. The SGI/MIPS ABI defines it to be the same as PTR_SIZE. */ 64#define DWARF_OFFSET_SIZE PTR_SIZE 65 66/* GNU/Linux doesn't use the same floating-point format that IRIX uses 67 for long double. There's no need to override this here, since 68 ieee_quad_format is the default, but let's put this here to make 69 sure nobody thinks we just forgot to set it to something else. */ 70#define MIPS_TFMODE_FORMAT mips_quad_format 71