mbedtls: update to version 2.3.0
[openwrt/openwrt.git] / toolchain / gcc / patches / 5.3.0 / 204-musl_sh.patch
1 gcc/Changelog:
2
3 2015-04-27 Gregor Richards <gregor.richards@uwaterloo.ca>
4 Szabolcs Nagy <szabolcs.nagy@arm.com>
5
6 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
7 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
8
9 --- a/gcc/config/sh/linux.h
10 +++ b/gcc/config/sh/linux.h
11 @@ -43,6 +43,28 @@ along with GCC; see the file COPYING3.
12
13 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
14
15 +#if TARGET_ENDIAN_DEFAULT == MASK_LITTLE_ENDIAN
16 +#define MUSL_DYNAMIC_LINKER_E "%{mb:eb}"
17 +#else
18 +#define MUSL_DYNAMIC_LINKER_E "%{!ml:eb}"
19 +#endif
20 +
21 +#if TARGET_CPU_DEFAULT & ( MASK_HARD_SH2A_DOUBLE | MASK_SH4 )
22 +/* "-nofpu" if any nofpu option is specified */
23 +#define MUSL_DYNAMIC_LINKER_FP \
24 + "%{m1|m2|m2a-nofpu|m3|m4-nofpu|m4-100-nofpu|m4-200-nofpu|m4-300-nofpu|" \
25 + "m4-340|m4-400|m4-500|m4al|m5-32media-nofpu|m5-64media-nofpu|" \
26 + "m5-compact-nofpu:-nofpu}"
27 +#else
28 +/* "-nofpu" if none of the hard fpu options are specified */
29 +#define MUSL_DYNAMIC_LINKER_FP \
30 + "%{m2a|m4|m4-100|m4-200|m4-300|m4a|m5-32media|m5-64media|m5-compact:;:-nofpu}"
31 +#endif
32 +
33 +#undef MUSL_DYNAMIC_LINKER
34 +#define MUSL_DYNAMIC_LINKER \
35 + "/lib/ld-musl-sh" MUSL_DYNAMIC_LINKER_E MUSL_DYNAMIC_LINKER_FP ".so.1"
36 +
37 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
38
39 #undef SUBTARGET_LINK_EMUL_SUFFIX