summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/musl/Makefile6
-rw-r--r--target/config/Config.in.cpu1
-rw-r--r--target/config/Config.in.libc1
-rw-r--r--toolchain/gcc/Makefile4
-rw-r--r--toolchain/gcc/patches/5.3.0/gcc.musl76
-rw-r--r--toolchain/musl/Makefile6
6 files changed, 64 insertions, 30 deletions
diff --git a/package/musl/Makefile b/package/musl/Makefile
index 6f6598ce5..fab4f4a37 100644
--- a/package/musl/Makefile
+++ b/package/musl/Makefile
@@ -39,6 +39,12 @@ endif
ifeq ($(ADK_TARGET_CPU_ARCH),ppc)
MARCH:= powerpc
endif
+ifeq ($(ADK_TARGET_CPU_ARCH),ppc64)
+MARCH:= powerpc64
+endif
+ifeq ($(ADK_TARGET_CPU_ARCH),ppc64le)
+MARCH:= powerpc64le
+endif
ifeq ($(ADK_TARGET_CPU_ARCH),sh4)
MARCH:= sh
endif
diff --git a/target/config/Config.in.cpu b/target/config/Config.in.cpu
index 4ed699677..e3cd05da2 100644
--- a/target/config/Config.in.cpu
+++ b/target/config/Config.in.cpu
@@ -1605,6 +1605,7 @@ config ADK_TARGET_CPU_TYPE
default "mips64r2" if ADK_TARGET_CPU_MIPS64_MIPS64R2
default "mips64r6" if ADK_TARGET_CPU_MIPS64_MIPS64R6
default "mips64" if ADK_TARGET_CPU_MIPS64_LOONGSON2F
+ default "ppc64" if ADK_TARGET_ARCH_PPC64
default "v8" if ADK_TARGET_CPU_SPARC_V8
default "v9" if ADK_TARGET_CPU_SPARC64_V9
default "leon" if ADK_TARGET_CPU_SPARC_LEON
diff --git a/target/config/Config.in.libc b/target/config/Config.in.libc
index 9e0d78aa0..3b80d5337 100644
--- a/target/config/Config.in.libc
+++ b/target/config/Config.in.libc
@@ -47,6 +47,7 @@ config ADK_TARGET_LIB_MUSL
ADK_TARGET_ARCH_MIPS64 || \
ADK_TARGET_ARCH_OR1K || \
ADK_TARGET_ARCH_PPC || \
+ ADK_TARGET_ARCH_PPC64 || \
ADK_TARGET_ARCH_SH || \
ADK_TARGET_ARCH_X86 || \
ADK_TARGET_ARCH_X86_64) && ADK_TARGET_OS_LINUX
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 8a4024220..568423032 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -174,6 +174,10 @@ ifeq ($(ADK_TARGET_ARCH_PPC),y)
GCC_CONFOPTS+= --with-long-double-64 --enable-secureplt
endif
+ifeq ($(ADK_TARGET_ARCH_PPC64),y)
+GCC_CONFOPTS+= --without-long-double-128 --with-abi=elfv2
+endif
+
ifeq ($(ADK_TARGET_ARCH_FRV),y)
GCC_CONFOPTS+= --enable-sjlj-exceptions
endif
diff --git a/toolchain/gcc/patches/5.3.0/gcc.musl b/toolchain/gcc/patches/5.3.0/gcc.musl
index 1b47664f0..1413e9e90 100644
--- a/toolchain/gcc/patches/5.3.0/gcc.musl
+++ b/toolchain/gcc/patches/5.3.0/gcc.musl
@@ -1,6 +1,6 @@
diff -Nur gcc-5.3.0.orig/fixincludes/mkfixinc.sh gcc-5.3.0/fixincludes/mkfixinc.sh
--- gcc-5.3.0.orig/fixincludes/mkfixinc.sh 2012-10-28 22:42:48.000000000 +0100
-+++ gcc-5.3.0/fixincludes/mkfixinc.sh 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/fixincludes/mkfixinc.sh 2016-05-09 18:32:59.117636672 +0200
@@ -19,7 +19,8 @@
powerpc-*-eabi* | \
powerpc-*-rtems* | \
@@ -13,7 +13,7 @@ diff -Nur gcc-5.3.0.orig/fixincludes/mkfixinc.sh gcc-5.3.0/fixincludes/mkfixinc.
(echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
diff -Nur gcc-5.3.0.orig/gcc/config/aarch64/aarch64-linux.h gcc-5.3.0/gcc/config/aarch64/aarch64-linux.h
--- gcc-5.3.0.orig/gcc/config/aarch64/aarch64-linux.h 2015-07-24 18:00:26.000000000 +0200
-+++ gcc-5.3.0/gcc/config/aarch64/aarch64-linux.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/aarch64/aarch64-linux.h 2016-05-09 18:32:59.117636672 +0200
@@ -29,6 +29,8 @@
#undef CC1_SPEC
#define CC1_SPEC GNU_USER_TARGET_CC1_SPEC ASAN_CC1_SPEC
@@ -25,7 +25,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/aarch64/aarch64-linux.h gcc-5.3.0/gcc/config
#define LINUX_TARGET_LINK_SPEC "%{h*} \
diff -Nur gcc-5.3.0.orig/gcc/config/arm/linux-eabi.h gcc-5.3.0/gcc/config/arm/linux-eabi.h
--- gcc-5.3.0.orig/gcc/config/arm/linux-eabi.h 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/gcc/config/arm/linux-eabi.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/arm/linux-eabi.h 2016-05-09 18:32:59.117636672 +0200
@@ -77,6 +77,23 @@
%{mfloat-abi=soft*:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "} \
%{!mfloat-abi=*:" GLIBC_DYNAMIC_LINKER_DEFAULT "}"
@@ -52,7 +52,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/arm/linux-eabi.h gcc-5.3.0/gcc/config/arm/li
#undef LINK_SPEC
diff -Nur gcc-5.3.0.orig/gcc/config/i386/linux64.h gcc-5.3.0/gcc/config/i386/linux64.h
--- gcc-5.3.0.orig/gcc/config/i386/linux64.h 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/gcc/config/i386/linux64.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/i386/linux64.h 2016-05-09 18:32:59.117636672 +0200
@@ -30,3 +30,7 @@
#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
@@ -63,7 +63,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/i386/linux64.h gcc-5.3.0/gcc/config/i386/lin
+#define MUSL_DYNAMIC_LINKERX32 "/lib/ld-musl-x32.so.1"
diff -Nur gcc-5.3.0.orig/gcc/config/i386/linux.h gcc-5.3.0/gcc/config/i386/linux.h
--- gcc-5.3.0.orig/gcc/config/i386/linux.h 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/gcc/config/i386/linux.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/i386/linux.h 2016-05-09 18:32:59.117636672 +0200
@@ -21,3 +21,4 @@
#define GNU_USER_LINK_EMULATION "elf_i386"
@@ -71,7 +71,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/i386/linux.h gcc-5.3.0/gcc/config/i386/linux
+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1"
diff -Nur gcc-5.3.0.orig/gcc/config/linux.h gcc-5.3.0/gcc/config/linux.h
--- gcc-5.3.0.orig/gcc/config/linux.h 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/gcc/config/linux.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/linux.h 2016-05-09 18:32:59.117636672 +0200
@@ -32,10 +32,12 @@
#define OPTION_GLIBC (DEFAULT_LIBC == LIBC_GLIBC)
#define OPTION_UCLIBC (DEFAULT_LIBC == LIBC_UCLIBC)
@@ -214,7 +214,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/linux.h gcc-5.3.0/gcc/config/linux.h
versions, because doing so would require *uclinux* targets to include
diff -Nur gcc-5.3.0.orig/gcc/config/linux.opt gcc-5.3.0/gcc/config/linux.opt
--- gcc-5.3.0.orig/gcc/config/linux.opt 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/gcc/config/linux.opt 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/linux.opt 2016-05-09 18:32:59.117636672 +0200
@@ -30,3 +30,7 @@
muclibc
Target Report RejectNegative Var(linux_libc,LIBC_UCLIBC) Negative(mbionic)
@@ -225,7 +225,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/linux.opt gcc-5.3.0/gcc/config/linux.opt
+Use musl C library
diff -Nur gcc-5.3.0.orig/gcc/config/microblaze/linux.h gcc-5.3.0/gcc/config/microblaze/linux.h
--- gcc-5.3.0.orig/gcc/config/microblaze/linux.h 2015-05-28 16:08:19.000000000 +0200
-+++ gcc-5.3.0/gcc/config/microblaze/linux.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/microblaze/linux.h 2016-05-09 18:32:59.117636672 +0200
@@ -28,7 +28,22 @@
#undef TLS_NEEDS_GOT
#define TLS_NEEDS_GOT 1
@@ -252,7 +252,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/microblaze/linux.h gcc-5.3.0/gcc/config/micr
{ "dynamic_linker", DYNAMIC_LINKER }
diff -Nur gcc-5.3.0.orig/gcc/config/microblaze/microblaze.h gcc-5.3.0/gcc/config/microblaze/microblaze.h
--- gcc-5.3.0.orig/gcc/config/microblaze/microblaze.h 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/gcc/config/microblaze/microblaze.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/microblaze/microblaze.h 2016-05-09 18:32:59.117636672 +0200
@@ -218,6 +218,12 @@
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "int"
@@ -268,7 +268,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/microblaze/microblaze.h gcc-5.3.0/gcc/config
&& (ALIGN) < BITS_PER_WORD \
diff -Nur gcc-5.3.0.orig/gcc/config/mips/linux.h gcc-5.3.0/gcc/config/mips/linux.h
--- gcc-5.3.0.orig/gcc/config/mips/linux.h 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/gcc/config/mips/linux.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/mips/linux.h 2016-05-09 18:32:59.117636672 +0200
@@ -31,13 +31,26 @@
#undef UCLIBC_DYNAMIC_LINKER32
#define UCLIBC_DYNAMIC_LINKER32 \
@@ -299,13 +299,15 @@ diff -Nur gcc-5.3.0.orig/gcc/config/mips/linux.h gcc-5.3.0/gcc/config/mips/linux
+ BIONIC_DYNAMIC_LINKERN32, MUSL_DYNAMIC_LINKERN32)
diff -Nur gcc-5.3.0.orig/gcc/config/rs6000/linux64.h gcc-5.3.0/gcc/config/rs6000/linux64.h
--- gcc-5.3.0.orig/gcc/config/rs6000/linux64.h 2015-03-10 00:18:57.000000000 +0100
-+++ gcc-5.3.0/gcc/config/rs6000/linux64.h 2015-12-08 05:53:22.243521385 +0100
-@@ -365,17 +365,21 @@
++++ gcc-5.3.0/gcc/config/rs6000/linux64.h 2016-05-09 18:34:48.589864446 +0200
+@@ -365,17 +365,23 @@
#endif
#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
-+#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-powerpc.so.1"
-+#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-powerpc64.so.1"
++#define MUSL_DYNAMIC_LINKER32 \
++ "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
++#define MUSL_DYNAMIC_LINKER64 \
++ "/lib/ld-musl-powerpc64" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
#if DEFAULT_LIBC == LIBC_UCLIBC
-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
+#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
@@ -328,7 +330,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/rs6000/linux64.h gcc-5.3.0/gcc/config/rs6000
#if (TARGET_DEFAULT & MASK_LITTLE_ENDIAN)
diff -Nur gcc-5.3.0.orig/gcc/config/rs6000/secureplt.h gcc-5.3.0/gcc/config/rs6000/secureplt.h
--- gcc-5.3.0.orig/gcc/config/rs6000/secureplt.h 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/gcc/config/rs6000/secureplt.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/rs6000/secureplt.h 2016-05-09 18:32:59.117636672 +0200
@@ -18,3 +18,4 @@
<http://www.gnu.org/licenses/>. */
@@ -336,7 +338,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/rs6000/secureplt.h gcc-5.3.0/gcc/config/rs60
+#define LINK_SECURE_PLT_DEFAULT_SPEC "--secure-plt"
diff -Nur gcc-5.3.0.orig/gcc/config/rs6000/sysv4.h gcc-5.3.0/gcc/config/rs6000/sysv4.h
--- gcc-5.3.0.orig/gcc/config/rs6000/sysv4.h 2015-09-24 15:46:45.000000000 +0200
-+++ gcc-5.3.0/gcc/config/rs6000/sysv4.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/rs6000/sysv4.h 2016-05-09 23:19:35.637951308 +0200
@@ -537,6 +537,9 @@
#ifndef CC1_SECURE_PLT_DEFAULT_SPEC
#define CC1_SECURE_PLT_DEFAULT_SPEC ""
@@ -347,11 +349,16 @@ diff -Nur gcc-5.3.0.orig/gcc/config/rs6000/sysv4.h gcc-5.3.0/gcc/config/rs6000/s
/* Pass -G xxx to the compiler. */
#undef CC1_SPEC
-@@ -759,15 +762,18 @@
+@@ -757,17 +761,23 @@
+ #define LINK_START_LINUX_SPEC ""
+
++#define MUSL_DYNAMIC_LINKER_E ENDIAN_SELECT("","le","")
++
#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
-+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-powerpc.so.1"
++#define MUSL_DYNAMIC_LINKER \
++ "/lib/ld-musl-powerpc" MUSL_DYNAMIC_LINKER_E "%{msoft-float:-sf}.so.1"
#if DEFAULT_LIBC == LIBC_UCLIBC
-#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
+#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
@@ -369,7 +376,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/rs6000/sysv4.h gcc-5.3.0/gcc/config/rs6000/s
#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
%{rdynamic:-export-dynamic} \
-@@ -889,6 +895,7 @@
+@@ -889,6 +899,7 @@
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
{ "link_os_default", LINK_OS_DEFAULT_SPEC }, \
{ "cc1_secure_plt_default", CC1_SECURE_PLT_DEFAULT_SPEC }, \
@@ -377,9 +384,18 @@ diff -Nur gcc-5.3.0.orig/gcc/config/rs6000/sysv4.h gcc-5.3.0/gcc/config/rs6000/s
{ "cpp_os_ads", CPP_OS_ADS_SPEC }, \
{ "cpp_os_yellowknife", CPP_OS_YELLOWKNIFE_SPEC }, \
{ "cpp_os_mvme", CPP_OS_MVME_SPEC }, \
+diff -Nur gcc-5.3.0.orig/gcc/config/rs6000/sysv4le.h gcc-5.3.0/gcc/config/rs6000/sysv4le.h
+--- gcc-5.3.0.orig/gcc/config/rs6000/sysv4le.h 2015-09-24 15:46:45.000000000 +0200
++++ gcc-5.3.0/gcc/config/rs6000/sysv4le.h 2016-05-09 18:37:01.987015032 +0200
+@@ -31,3 +31,5 @@
+ /* Little-endian PowerPC64 Linux uses the ELF v2 ABI by default. */
+ #define LINUX64_DEFAULT_ABI_ELFv2
+
++#undef MUSL_DYNAMIC_LINKER_E
++#define MUSL_DYNAMIC_LINKER_E ENDIAN_SELECT("","le","le")
diff -Nur gcc-5.3.0.orig/gcc/config/sh/linux.h gcc-5.3.0/gcc/config/sh/linux.h
--- gcc-5.3.0.orig/gcc/config/sh/linux.h 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/gcc/config/sh/linux.h 2015-12-08 05:53:22.243521385 +0100
++++ gcc-5.3.0/gcc/config/sh/linux.h 2016-05-09 18:32:59.117636672 +0200
@@ -43,7 +43,14 @@
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
@@ -397,7 +413,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config/sh/linux.h gcc-5.3.0/gcc/config/sh/linux.h
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
diff -Nur gcc-5.3.0.orig/gcc/config.gcc gcc-5.3.0/gcc/config.gcc
--- gcc-5.3.0.orig/gcc/config.gcc 2015-09-10 16:17:53.000000000 +0200
-+++ gcc-5.3.0/gcc/config.gcc 2015-12-08 05:53:22.247521539 +0100
++++ gcc-5.3.0/gcc/config.gcc 2016-05-09 18:32:59.117636672 +0200
@@ -575,7 +575,7 @@
esac
@@ -430,7 +446,7 @@ diff -Nur gcc-5.3.0.orig/gcc/config.gcc gcc-5.3.0/gcc/config.gcc
fi
diff -Nur gcc-5.3.0.orig/gcc/configure gcc-5.3.0/gcc/configure
--- gcc-5.3.0.orig/gcc/configure 2015-11-19 14:32:10.000000000 +0100
-+++ gcc-5.3.0/gcc/configure 2015-12-08 05:53:22.251521693 +0100
++++ gcc-5.3.0/gcc/configure 2016-05-09 18:32:59.121636810 +0200
@@ -27802,6 +27802,9 @@
else
gcc_cv_libc_provides_ssp=no
@@ -461,7 +477,7 @@ diff -Nur gcc-5.3.0.orig/gcc/configure gcc-5.3.0/gcc/configure
if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
diff -Nur gcc-5.3.0.orig/gcc/configure.ac gcc-5.3.0/gcc/configure.ac
--- gcc-5.3.0.orig/gcc/configure.ac 2015-11-19 14:32:10.000000000 +0100
-+++ gcc-5.3.0/gcc/configure.ac 2015-12-08 05:53:22.255521847 +0100
++++ gcc-5.3.0/gcc/configure.ac 2016-05-09 18:32:59.125636929 +0200
@@ -5282,6 +5282,9 @@
gcc_cv_libc_provides_ssp,
[gcc_cv_libc_provides_ssp=no
@@ -492,7 +508,7 @@ diff -Nur gcc-5.3.0.orig/gcc/configure.ac gcc-5.3.0/gcc/configure.ac
if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
diff -Nur gcc-5.3.0.orig/gcc/gcc.c gcc-5.3.0/gcc/gcc.c
--- gcc-5.3.0.orig/gcc/gcc.c 2015-03-10 10:37:41.000000000 +0100
-+++ gcc-5.3.0/gcc/gcc.c 2015-12-08 05:53:22.255521847 +0100
++++ gcc-5.3.0/gcc/gcc.c 2016-05-09 18:32:59.125636929 +0200
@@ -729,7 +729,7 @@
#ifndef LINK_SSP_SPEC
#ifdef TARGET_LIBC_PROVIDES_SSP
@@ -504,7 +520,7 @@ diff -Nur gcc-5.3.0.orig/gcc/gcc.c gcc-5.3.0/gcc/gcc.c
"|fstack-protector-strong|fstack-protector-explicit" \
diff -Nur gcc-5.3.0.orig/gcc/ginclude/stddef.h gcc-5.3.0/gcc/ginclude/stddef.h
--- gcc-5.3.0.orig/gcc/ginclude/stddef.h 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/gcc/ginclude/stddef.h 2015-12-08 05:53:22.255521847 +0100
++++ gcc-5.3.0/gcc/ginclude/stddef.h 2016-05-09 18:32:59.125636929 +0200
@@ -184,6 +184,7 @@
#ifndef _GCC_SIZE_T
#ifndef _SIZET_
@@ -531,7 +547,7 @@ diff -Nur gcc-5.3.0.orig/gcc/ginclude/stddef.h gcc-5.3.0/gcc/ginclude/stddef.h
#endif /* _GCC_SIZE_T */
diff -Nur gcc-5.3.0.orig/libgcc/unwind-dw2-fde-dip.c gcc-5.3.0/libgcc/unwind-dw2-fde-dip.c
--- gcc-5.3.0.orig/libgcc/unwind-dw2-fde-dip.c 2015-01-27 11:02:26.000000000 +0100
-+++ gcc-5.3.0/libgcc/unwind-dw2-fde-dip.c 2015-12-08 05:53:22.255521847 +0100
++++ gcc-5.3.0/libgcc/unwind-dw2-fde-dip.c 2016-05-09 18:32:59.125636929 +0200
@@ -46,6 +46,10 @@
#include "unwind-compat.h"
#include "gthr.h"
@@ -545,7 +561,7 @@ diff -Nur gcc-5.3.0.orig/libgcc/unwind-dw2-fde-dip.c gcc-5.3.0/libgcc/unwind-dw2
|| (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
diff -Nur gcc-5.3.0.orig/libgomp/config/posix/time.c gcc-5.3.0/libgomp/config/posix/time.c
--- gcc-5.3.0.orig/libgomp/config/posix/time.c 2015-01-10 20:10:37.000000000 +0100
-+++ gcc-5.3.0/libgomp/config/posix/time.c 2015-12-08 05:53:22.255521847 +0100
++++ gcc-5.3.0/libgomp/config/posix/time.c 2016-05-09 18:32:59.125636929 +0200
@@ -29,6 +29,8 @@
The following implementation uses the most simple POSIX routines.
If present, POSIX 4 clocks should be used instead. */
@@ -557,7 +573,7 @@ diff -Nur gcc-5.3.0.orig/libgomp/config/posix/time.c gcc-5.3.0/libgomp/config/po
#if TIME_WITH_SYS_TIME
diff -Nur gcc-5.3.0.orig/libitm/config/arm/hwcap.cc gcc-5.3.0/libitm/config/arm/hwcap.cc
--- gcc-5.3.0.orig/libitm/config/arm/hwcap.cc 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/libitm/config/arm/hwcap.cc 2015-12-08 05:53:22.255521847 +0100
++++ gcc-5.3.0/libitm/config/arm/hwcap.cc 2016-05-09 18:32:59.125636929 +0200
@@ -40,7 +40,11 @@
#ifdef __linux__
@@ -572,7 +588,7 @@ diff -Nur gcc-5.3.0.orig/libitm/config/arm/hwcap.cc gcc-5.3.0/libitm/config/arm/
static void __attribute__((constructor))
diff -Nur gcc-5.3.0.orig/libitm/config/linux/x86/tls.h gcc-5.3.0/libitm/config/linux/x86/tls.h
--- gcc-5.3.0.orig/libitm/config/linux/x86/tls.h 2015-01-05 13:33:28.000000000 +0100
-+++ gcc-5.3.0/libitm/config/linux/x86/tls.h 2015-12-08 05:53:22.255521847 +0100
++++ gcc-5.3.0/libitm/config/linux/x86/tls.h 2016-05-09 18:32:59.125636929 +0200
@@ -25,16 +25,19 @@
#ifndef LIBITM_X86_TLS_H
#define LIBITM_X86_TLS_H 1
@@ -604,7 +620,7 @@ diff -Nur gcc-5.3.0.orig/libitm/config/linux/x86/tls.h gcc-5.3.0/libitm/config/l
#endif // LIBITM_X86_TLS_H
diff -Nur gcc-5.3.0.orig/libstdc++-v3/configure.host gcc-5.3.0/libstdc++-v3/configure.host
--- gcc-5.3.0.orig/libstdc++-v3/configure.host 2015-06-24 11:59:28.000000000 +0200
-+++ gcc-5.3.0/libstdc++-v3/configure.host 2015-12-08 05:53:22.255521847 +0100
++++ gcc-5.3.0/libstdc++-v3/configure.host 2016-05-09 18:32:59.125636929 +0200
@@ -274,6 +274,13 @@
os_include_dir="os/bsd/freebsd"
;;
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile
index 0c628806a..1bbb2d190 100644
--- a/toolchain/musl/Makefile
+++ b/toolchain/musl/Makefile
@@ -9,6 +9,12 @@ include ${ADK_TOPDIR}/mk/buildhlp.mk
ifeq ($(ADK_TARGET_CPU_ARCH),ppc)
GNU_TARGET_NAME:= $(subst ppc,powerpc,$(GNU_TARGET_NAME))
endif
+ifeq ($(ADK_TARGET_CPU_ARCH),ppc64)
+GNU_TARGET_NAME:= $(subst ppc64,powerpc64,$(GNU_TARGET_NAME))
+endif
+ifeq ($(ADK_TARGET_CPU_ARCH),ppc64le)
+GNU_TARGET_NAME:= $(subst ppc64le,powerpc64le,$(GNU_TARGET_NAME))
+endif
# not yet possible
TARGET_CFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
TARGET_LDFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))