Re: [PATCH v2 2/2] powerpc/32: add stack protector support

2018-09-19 Thread Segher Boessenkool
On Wed, Sep 19, 2018 at 04:22:52PM +0200, Christophe LEROY wrote: > >It looks like it will be easy to enable on 64 bit as well. > > Will it ? It seems that PPC64 doesn't have r2 pointing to current task > struct, but instead it has r13 pointing to the paca struct. Which means > we should add a c

Re: [PATCH v2 2/2] powerpc/32: add stack protector support

2018-09-19 Thread Christophe LEROY
Le 19/09/2018 à 15:26, Segher Boessenkool a écrit : On Wed, Sep 19, 2018 at 11:14:45AM +, Christophe Leroy wrote: --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -112,6 +112,10 @@ KBUILD_LDFLAGS += -m elf$(BITS)$(LDEMULATION) KBUILD_ARFLAGS+= --target=elf$(BITS)-$

Re: [PATCH v2 2/2] powerpc/32: add stack protector support

2018-09-19 Thread Segher Boessenkool
On Wed, Sep 19, 2018 at 11:14:45AM +, Christophe Leroy wrote: > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -112,6 +112,10 @@ KBUILD_LDFLAGS += -m elf$(BITS)$(LDEMULATION) > KBUILD_ARFLAGS += --target=elf$(BITS)-$(GNUTARGET) > endif > > +cflags-$(CONFIG_STACKPROTE