toolchain/gcc: update 5.x to 5.5.0
[openwrt/openwrt.git] / toolchain / gcc / patches / 5.5.0 / 205-musl_x86.patch
1 From: ktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
2 Date: Fri, 15 May 2015 13:20:01 +0000 (+0000)
3 Subject: [PATCH 9/13] x86 musl support
4 X-Git-Url: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff_plain;h=5551c8d927c17f60837f15f8dfe46f945ba3fa9c
5
6 [PATCH 9/13] x86 musl support
7
8 On behalf of Szabolcs Nagy.
9
10 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
11
12 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
13 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
14 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
15
16
17 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223218 138bc75d-0d04-0410-961f-82ee72b054a4
18 ---
19
20 --- a/gcc/config/i386/linux.h
21 +++ b/gcc/config/i386/linux.h
22 @@ -21,3 +21,6 @@ along with GCC; see the file COPYING3.
23
24 #define GNU_USER_LINK_EMULATION "elf_i386"
25 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
26 +
27 +#undef MUSL_DYNAMIC_LINKER
28 +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1"
29 --- a/gcc/config/i386/linux64.h
30 +++ b/gcc/config/i386/linux64.h
31 @@ -30,3 +30,10 @@ see the files COPYING3 and COPYING.RUNTI
32 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
33 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
34 #define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
35 +
36 +#undef MUSL_DYNAMIC_LINKER32
37 +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1"
38 +#undef MUSL_DYNAMIC_LINKER64
39 +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-x86_64.so.1"
40 +#undef MUSL_DYNAMIC_LINKERX32
41 +#define MUSL_DYNAMIC_LINKERX32 "/lib/ld-musl-x32.so.1"