[Buildroot] [PATCH] gcc: add patch to support musl on ppc

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Nov 27 15:47:21 UTC 2016


Hello,

On Sun, 27 Nov 2016 16:39:12 +0100, Waldemar Brodkorb wrote:

> +diff -Nur gcc-5.4.0.orig/foo gcc-5.4.0/foo
> +--- gcc-5.4.0.orig/foo	1970-01-01 01:00:00.000000000 +0100
> ++++ gcc-5.4.0/foo	2016-11-27 13:14:17.473658991 +0100
> +@@ -0,0 +1,16 @@
> ++diff -Nur gcc-5.4.0-adk/gcc/config.gcc gcc-5.4.0-br/gcc/config.gcc
> ++--- gcc-5.4.0-adk/gcc/config.gcc        2016-11-27 06:58:59.316076489 +0100
> +++++ gcc-5.4.0-br/gcc/config.gcc 2016-11-27 07:01:08.780403758 +0100
> ++@@ -2416,10 +2416,6 @@
> ++            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
> ++
> ++

This chunk seems to be exactly the opposite of:

> +diff -Nur gcc-5.4.0.orig/gcc/config.gcc gcc-5.4.0/gcc/config.gcc
> +--- gcc-5.4.0.orig/gcc/config.gcc	2015-09-10 16:17:53.000000000 +0200
> ++++ gcc-5.4.0/gcc/config.gcc	2016-11-27 13:14:17.149638148 +0100
> +@@ -2413,6 +2413,10 @@
> + 	    powerpc*-*-linux*paired*)
> + 		tm_file="${tm_file} rs6000/750cl.h" ;;
> + 	esac
> ++	case ${target} in
> ++	    powerpc*-*-linux*-musl*)
> ++		enable_secureplt=yes ;;
> ++	esac
> + 	if test x${enable_secureplt} = xyes; then
> + 		tm_file="rs6000/secureplt.h ${tm_file}"
> + 	fi

This one.

Am I missing something? It looks like a badly generated patch.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the buildroot mailing list