Re: [PATCH] powerpc: Fix stackprotector detection for non-glibc toolchains

2018-10-15 Thread Michael Ellerman
Segher Boessenkool writes: > On Sat, Oct 13, 2018 at 10:55:01PM +1100, Michael Ellerman wrote: >> So it's only my cross compilers that don't work. >> >> The kernel.org ones are: >> Configured with: /home/arnd/git/gcc/configure --target=powerpc64-linux >> --enable-targets=all >> --prefix=/ho

Re: [PATCH] powerpc: Fix stackprotector detection for non-glibc toolchains

2018-10-13 Thread Segher Boessenkool
On Sat, Oct 13, 2018 at 10:55:01PM +1100, Michael Ellerman wrote: > So it's only my cross compilers that don't work. > > The kernel.org ones are: > Configured with: /home/arnd/git/gcc/configure --target=powerpc64-linux > --enable-targets=all > --prefix=/home/arnd/cross/x86_64/gcc-8.1.0-nolib

Re: [PATCH] powerpc: Fix stackprotector detection for non-glibc toolchains

2018-10-13 Thread Michael Ellerman
Christophe LEROY writes: > Le 13/10/2018 à 00:58, Michael Ellerman a écrit : >> If GCC is not built with glibc support then we must explicitly tell it >> which register to use for TLS mode stack protector, otherwise it will >> error out and the cc-option check will fail. > > Oh ? I didn't encounte

Re: [PATCH] powerpc: Fix stackprotector detection for non-glibc toolchains

2018-10-13 Thread Christophe LEROY
Le 13/10/2018 à 00:58, Michael Ellerman a écrit : If GCC is not built with glibc support then we must explicitly tell it which register to use for TLS mode stack protector, otherwise it will error out and the cc-option check will fail. Oh ? I didn't encounter such a problem with the nolibc G

[PATCH] powerpc: Fix stackprotector detection for non-glibc toolchains

2018-10-12 Thread Michael Ellerman
If GCC is not built with glibc support then we must explicitly tell it which register to use for TLS mode stack protector, otherwise it will error out and the cc-option check will fail. Signed-off-by: Michael Ellerman --- arch/powerpc/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(