PR c++/56838
[official-gcc.git] / gcc / config / microblaze / linux.h
bloba7b7a1adcfa56c0d30cbe6ec68adb2fcf1726849
1 /* Definitions for MicroBlaze running Linux.
2 Copyright (C) 2009-2013 Free Software Foundation, Inc.
4 This file is part of GCC.
6 Contributed by Michael Eager <eager@eagercon.com>.
8 GCC 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 3, or (at your option)
11 any later version.
13 GCC 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.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 #undef TARGET_SUPPORTS_PIC
23 #define TARGET_SUPPORTS_PIC 1
25 #undef TLS_NEEDS_GOT
26 #define TLS_NEEDS_GOT 1
28 #define DYNAMIC_LINKER "/lib/ld.so.1"
29 #undef SUBTARGET_EXTRA_SPECS
30 #define SUBTARGET_EXTRA_SPECS \
31 { "dynamic_linker", DYNAMIC_LINKER }
33 #undef LINK_SPEC
34 #define LINK_SPEC "%{shared:-shared} \
35 %{!shared: \
36 %{!static: \
37 %{rdynamic:-export-dynamic} \
38 -dynamic-linker %(dynamic_linker)} \
39 %{static:-static}} \
40 %{mbig-endian:-EB} \
41 %{mlittle-endian:-EL}"
43 /* For the microblaze-*-linux* subtarget. */
44 #undef TARGET_OS_CPP_BUILTINS
45 #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()