summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-09-22 08:30:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-09-22 08:30:15 +0000
commit6c6508d0e18a7573b08c1d8ca3c5cbacd4f7f70b (patch)
tree91ac24ee55e730cd002434ed2f3ba8545eb5554d
parent3d64edb024bee63d504632b23e034ace6690d9ef (diff)
downloadmtk-20170518-6c6508d0e18a7573b08c1d8ca3c5cbacd4f7f70b.zip
mtk-20170518-6c6508d0e18a7573b08c1d8ca3c5cbacd4f7f70b.tar.gz
mtk-20170518-6c6508d0e18a7573b08c1d8ca3c5cbacd4f7f70b.tar.bz2
gcc: fix accidentally dropped chunk of the musl gcc 5.2.0 powerpc patch (fixes #20501)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47024
-rw-r--r--toolchain/gcc/patches/5.2.0/203-musl_powerpc.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/5.2.0/203-musl_powerpc.patch b/toolchain/gcc/patches/5.2.0/203-musl_powerpc.patch
index 8c0a4cc..2783b27 100644
--- a/toolchain/gcc/patches/5.2.0/203-musl_powerpc.patch
+++ b/toolchain/gcc/patches/5.2.0/203-musl_powerpc.patch
@@ -194,3 +194,16 @@ gcc/Changelog:
+#undef MUSL_DYNAMIC_LINKER_E
+#define MUSL_DYNAMIC_LINKER_E ENDIAN_SELECT("","le","le")
+--- a/gcc/config.gcc
++++ b/gcc/config.gcc
+@@ -2410,6 +2410,10 @@ powerpc*-*-linux*)
+ powerpc*-*-linux*paired*)
+ tm_file="${tm_file} rs6000/750cl.h" ;;
+ esac
++ case ${target} in
++ *-linux*-musl*)
++ enable_secureplt=yes ;;
++ esac
+ if test x${enable_secureplt} = xyes; then
+ tm_file="rs6000/secureplt.h ${tm_file}"
+ fi