PR target/56858
[official-gcc.git] / gcc / config / mips / linux64.h
blob7ad3b2af2b9ada73c3d2a1652ab50fb91c3371f8
1 /* Definitions for MIPS running Linux-based GNU systems with ELF format
2 using n32/64 abi.
3 Copyright (C) 2002-2014 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC 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 3, or (at your option)
10 any later version.
12 GCC 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.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #define GNU_USER_LINK_EMULATION32 "elf32%{EB:b}%{EL:l}tsmip"
22 #define GNU_USER_LINK_EMULATION64 "elf64%{EB:b}%{EL:l}tsmip"
23 #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32"
25 #define GLIBC_DYNAMIC_LINKER32 \
26 "%{mnan=2008:/lib/ld-linux-mipsn8.so.1;:/lib/ld.so.1}"
27 #define GLIBC_DYNAMIC_LINKER64 \
28 "%{mnan=2008:/lib64/ld-linux-mipsn8.so.1;:/lib64/ld.so.1}"
29 #define GLIBC_DYNAMIC_LINKERN32 \
30 "%{mnan=2008:/lib32/ld-linux-mipsn8.so.1;:/lib32/ld.so.1}"
32 #undef UCLIBC_DYNAMIC_LINKER32
33 #define UCLIBC_DYNAMIC_LINKER32 \
34 "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}"
35 #undef UCLIBC_DYNAMIC_LINKER64
36 #define UCLIBC_DYNAMIC_LINKER64 \
37 "%{mnan=2008:/lib/ld64-uClibc-mipsn8.so.0;:/lib/ld64-uClibc.so.0}"
38 #define UCLIBC_DYNAMIC_LINKERN32 \
39 "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}"
41 #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
42 #define GNU_USER_DYNAMIC_LINKERN32 \
43 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
44 BIONIC_DYNAMIC_LINKERN32)