comparison gcc/config/microblaze/linux.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 561a7518be6b
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Definitions for MicroBlaze running Linux. 1 /* Definitions for MicroBlaze running Linux.
2 Copyright 2009, 2010 Free Software Foundation, Inc. 2 Copyright (C) 2009-2017 Free Software Foundation, Inc.
3 3
4 This file is part of GCC. 4 This file is part of GCC.
5 5
6 Contributed by Michael Eager <eager@eagercon.com>. 6 Contributed by Michael Eager <eager@eagercon.com>.
7 7
17 17
18 You should have received a copy of the GNU General Public License 18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see 19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */ 20 <http://www.gnu.org/licenses/>. */
21 21
22 #undef TARGET_SUPPORTS_PIC
23 #define TARGET_SUPPORTS_PIC 1
22 24
23 #define DYNAMIC_LINKER "/lib/ld.so.1" 25 #undef CPP_SPEC
26 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
27
28 #undef TLS_NEEDS_GOT
29 #define TLS_NEEDS_GOT 1
30
31 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
32 #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
33
34 #if TARGET_BIG_ENDIAN_DEFAULT == 0 /* LE */
35 #define MUSL_DYNAMIC_LINKER_E "%{mbig-endian:;:el}"
36 #else
37 #define MUSL_DYNAMIC_LINKER_E "%{mlittle-endian:el}"
38 #endif
39
40 #undef MUSL_DYNAMIC_LINKER
41 #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-microblaze" MUSL_DYNAMIC_LINKER_E ".so.1"
42
24 #undef SUBTARGET_EXTRA_SPECS 43 #undef SUBTARGET_EXTRA_SPECS
25 #define SUBTARGET_EXTRA_SPECS \ 44 #define SUBTARGET_EXTRA_SPECS \
26 { "dynamic_linker", DYNAMIC_LINKER } 45 { "dynamic_linker", GNU_USER_DYNAMIC_LINKER }
27 46
28 #undef LINK_SPEC 47 #undef LINK_SPEC
29 #define LINK_SPEC "%{shared:-shared} \ 48 #define LINK_SPEC "%{shared:-shared} \
30 %{!shared: \ 49 %{!shared: \
31 %{!static: \ 50 %{!static: \
32 %{rdynamic:-export-dynamic} \ 51 %{rdynamic:-export-dynamic} \
33 -dynamic-linker %(dynamic_linker)} \ 52 -dynamic-linker %(dynamic_linker)} \
34 %{static:-static}}" 53 %{static:-static}} \
54 %{mbig-endian:-EB} \
55 %{mlittle-endian:-EL}"
35 56
57 /* For the microblaze-*-linux* subtarget. */
58 #undef TARGET_OS_CPP_BUILTINS
59 #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
60
61 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack