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